/rotator

Primary LanguageJavaScript

rotator

AN OPEN SOURCE JAVASCRIPT LIBRARY TO ANIMATE ROTATION TO ANY WEB PAGE ELEMENT

hello this is Siddhartha Bajpai here i present my rotator.js javaScript library, now you can animate the components in your html page with just a line of code

#usage

syntax - rotator_object_name = new rotator(target_object,inertia,velocity);

#Example suppose the component which we want to spin has the id "rotor" now b = document.getElementById('rect'); var r = new rotator(b,.1,40);

#thanks i hope you guys liked it the working codePen is available for further help- https://codepen.io/siddhartha-bajpai/pen/VwbvgrG