getcssstyle

0.0.4 • Public • Published

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

size gzipsize CDNJS jsdelivr unpkg npmcdn NPM Version NPM Downloads
NPM

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 = require('getcsstyle');
var computedcss = getcss.CSSComputedStyle;
 
var toAnimation = {width:'200px', height:'300px'};
var fromAnimation = computedcss(myElement, toAnimation) // {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

Package Sidebar

Install

npm i getcssstyle

Weekly Downloads

12

Version

0.0.4

License

MIT

Last publish

Collaborators

  • dalisoft