0.1.1 • Published 11 years ago

CSSMatrix v0.1.1

Weekly downloads
131
License
-
Repository
github
Last release
11 years ago

CSSMatrix

This is a CSSMatrix class as defined by the w3c CSS3 3d Transforms specification.

Installation

npm install CSSMatrix

Usage

It should be compatible with documentation defined at w3.org and at WebKitCSSMatrix Safari documentation.

Methods:

  • translate(x, y, z)
  • scale(x, y, z)
  • rotate(rx, ry, rz)
  • rotateAxisAngle(x, y, z, angle)
  • skewX(angle)
  • skewY(angle)
  • toString()
  • transform(tuple)
  • toFullString()

Properties:

  • m11 to m44. m12 is the second element in the first row.

Warning

Rotating matrices might yield into wrong results or results inconsistent with WebKitCSSMatrix.

0.1.1

11 years ago

0.1.0

11 years ago

0.0.1

12 years ago