+ 1
how do i get the frame to move by px to the right
2 Antworten
+ 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
0
Sorry but every time I touch the button it moves 10px