Posts

Showing posts with the label javascript animation

AniMate bY Javascript : JavaScript

Image
To make the webpage dynamic we use animation. This animation can be implemented using both CSS and JavaScript. Here's how to use JavaScript animation in webpage. How does it work? The idea behind the JavaScript-based animation is fairly simple, a number of DOM elements (< /img>, < /div > or otherwise) are moved around the page according to some sort of pattern determined by a logical equation or function. You can use JavaScript to create a complex animation having following elements, Fireworks Fade effect Roll-in or Roll-out Page-in or Page-out Object movement An existing JavaScript animation library JavaScript provides the following two functions to be frequently used in animation programs. setTimeout( function, duration)   − This function calls   function   after   duration   milliseconds from now. setInterval(function, duration)   − This function calls   function   after every   duration milliseconds. clearTimeout(s...