css-transformer
JavaScript library tool to hanlde css3 transform property.
Install
$ npm install css-transformer
How to use
Nice transform!
var transform = ; var el = document; // get current transform properties from the given elementvar prps = ; // set translate propertyprps;;
Nice transform!
API
Transform(Element)
Return the transform
properties object from the given element
Transform.build(Object)
Return the transform
style string from the given transform object
Transform.set(Element, Object)
Set transform
property in the given element from the given transform object
License
MIT – Copyright 2014 Automattic