0

JavaScript moving objects?

Anyone got a simple script to move an ellipse in a square path? (Loops)

25th Oct 2018, 12:30 PM
Pierre Bonnet
Pierre Bonnet - avatar
2 Réponses
- 1
I guess CSS would be able to do the job. https://www.w3schools.com/css/tryit.asp?filename=trycss3_animation3 **Of course you’ll need to modify the square into an ellipse
25th Oct 2018, 1:48 PM
Cyrus
Cyrus - avatar
+ 1
thanks cyrus but i would like it in javascript, i try to understand how to control the flow, i would like to do it in four steps, move to right until width -10px move doWn until height - 10px, move left until x-10px move up back to starting point where x and y = 10px
25th Oct 2018, 2:07 PM
Pierre Bonnet
Pierre Bonnet - avatar