getCSSStyle
An optimized, cross-browser, high-performance, well-coded and lightweight CSS-Style Getter for JavaScript and Javascript-based animation/tweening engine that runs anywhere
CDN
# unpkg https://unpkg.com/getcsstyle # npmcdn https://npmcdn.com/getcsstyle # jsDelivr https://cdn.jsdelivr.net/npm/getcsstyle
Installing
$ npm install getcsstyle# or $ yarn add getcsstyle
Usage
var getcss = ;var computedcss = getcssCSSComputedStyle; var toAnimation = width:'200px' height:'300px';var fromAnimation = // {width:...,height:...};// Returns value for specified properties
Methods
CSSComputedStyle
Like getComputedStyle
, but cleaner API, better compatibility and transforms supported (actual non-matrix value returns)
CSSTransformOrigin
Returns origin and bounds of source
Prefix
Returns prefixed your property