UNPKG

animation-chain

Version:

Animation Chain is a chaining library which utilizes the browser's `requestAnimationFrame` function in place of the usual `setTimeout`. This results in a much more accurate representation of time passed based on a delta time calculation. This can be usefu

18 lines (15 loc) 361 B
<!doctype HTML> <html> <head> <title>Chain together animations</title> <link rel="stylesheet" href="app.css" type="text/css"> </head> <body> <h1>Chain chain chain</h1> <div class='animation-container'> <div class="animating-div"></div> </div> <button>Log it!</button> <script src="/__build__/animation-chaining.js"></script> </body> </html>