+ 1

how do i get the frame to move by px to the right

https://code.sololearn.com/W8VjA0MEr73g/?ref=app

12th Sep 2020, 9:25 PM
Bryan Gustavo Vargas Madrigal
Bryan Gustavo Vargas Madrigal - avatar
2 Answers
+ 1
Bryan Gustavo Vargas I edited your example: 1. Made the #box element an absolute positioned element. 2. Added CSS custom properties (variables) to the #box element to animate the movement. 3. Added a function moveRight() to move the #box element to a specified distance to the right. ***Suggestion - Please don't use <br> tags for spacing. Use margin instead. Code Example: https://code.sololearn.com/WBnHm65314Rs/?ref=app
13th Sep 2020, 3:11 AM
Hanuma Ukkadapu
Hanuma Ukkadapu - avatar
0
Sorry but every time I touch the button it moves 10px
13th Sep 2020, 1:20 AM
Bryan Gustavo Vargas Madrigal
Bryan Gustavo Vargas Madrigal - avatar