The secret to silky smooth JavaScript animation! Creating an animation in JavaScript is one of the simplest things you can do. If you’ve ever tried to do it, you’ll most likely have used either the setTimeout or setInterval functions. Here’s a typical example: function draw() { // Drawing code goes here } setInterval(draw, 100); This piece of code will call the draw function once every 100ms forev