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

Riz
Riz

Passion is beyond limitation. If you’re passionate about ANYTHING, nobody can stop you not to do what you want. Blogging and Web Designing is my passion that don’t drive me to do what I want but push me as well to share fanatical stuff with people.

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

div#stuning-header .dfd-stuning-header-bg-container {background-image: url(http://www.downgraf.com/wp-content/uploads/2017/04/login-back.jpg);background-size: cover;background-position: center center;background-attachment: scroll;background-repeat: no-repeat;}#stuning-header div.page-title-inner {min-height: 500px;}