Click the link to open index.html with a browser and open developer tools by pressing option+command+I (⌥+⌘+I).
Debug the code to understand the JavaScript Animation.
This a basic animation that both fades and moves a div with JavaScript. This approach should be avoided if possible if the same can be done with CSS. JavaScript animations are resource heavy.
Amination.js Animation class has move and fade methods that are used in this example.
Return to Index