Free Download

JavaScript Library to Create Physics Based Animations

Riz Ali
Riz
Jun 27, 2015
1 min read
124 words
JavaScript library to create physics-based animations

Dynamics.js will be presented. This is a JavaScript library to create physics based animations.

CSS properties of any DOM element can be animated by including dynamics.js into your page. SVG properties and any JavaScript object can also be animated. Dynamics.js has its own setTimeout just because requestAnimationFrame and setTimeout have different actions. In most browsers, requestAnimationFrame won’t run in a background tab while setTimeout will. This can become reason of problems while using setTimeout beside your animations. Dynamics’s setTimeout and clearTimeout are recommended to handle these scenarios.

You can toggle a debug mode to slow down every animations and timeouts. This is beneficial for development mode to tweak animation. You can activate this using Shift-Control-D in the browser.

JavaScript library to create physics-based animations

Source: Github

Make your Website Responsive or Adaptive with Restive.JS
Riz Ali

Riz

Author

Riz is a Senior Web Strategist with over 14+ years of hands-on experience in full-stack web design and digital architecture. Having successfully delivered 250+ web projects, he believes passion is the engine of innovation. Riz specializes in translating complex technical concepts into accessible, fanatical content, helping businesses bridge the gap between aesthetic design and high-performance engineering. His work has been instrumental in scaling digital presence for startups and established brands alike.

View all posts

Continue reading

You might also like

Leave a Reply

Your email address will not be published. Required fields are marked *

Menu