Faster animations with JavaScript.
Posted: Fri May 01, 2020 11:05 am
Hello.
I've made some animations with Javascript, but speed wasn't very high even setting the interval value to 1. Setting the movement from 1 to 5 pixels doesn't give a smooth movement.
Yesterday I did some animation for a site about a DoBot and found out that by starting the interval several times, the speed increased up dramatically.
The following link shows what I mean and you can also download the source code.
https://www.edutechsoft.nl/Webanimator% ... matie.html
Maybe it's useful for your own projects.
HOB
I've made some animations with Javascript, but speed wasn't very high even setting the interval value to 1. Setting the movement from 1 to 5 pixels doesn't give a smooth movement.
Yesterday I did some animation for a site about a DoBot and found out that by starting the interval several times, the speed increased up dramatically.
The following link shows what I mean and you can also download the source code.
https://www.edutechsoft.nl/Webanimator% ... matie.html
Maybe it's useful for your own projects.
HOB