JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q28820F
  • License MIT

An optimized, cross-browser, high-performance, well-coded and lightweight CSS-Style Getter for JavaScript and Javascript-based animation/tweening engine that runs anywhere

Package Exports

  • getcssstyle

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (getcssstyle) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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