how do i do java script animation
I have been try to create animations in java script for a long time and i would appreciate some working examples
Voters
[deleted]
You could use the Web Animation API: https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API/Using_the_Web_Animations_API
Or you could use CSS animation: https://css-tricks.com/almanac/properties/a/animation/
And: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Animations/Using_CSS_animations
Geocube101
I use the jquery
package
Just place
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
in your HTML file
More info on jquery here
You can then call an animation using the animate()
method
$(selector).animate(properties[, duration, easing, callback])
More on the animate method here
Many of the explainer video agency suggest these points for JAVA Script Animation: