css-matrix3d
v0.0.2
Published
CSS 3D Matrix transformation
Downloads
20
Readme
CSS-Matrix3d
Install
yarn add css-matrix3d
#or
npm install css-matrix3d --save
Usage
import { scale, translate, rotate, generateMatrix, generateCSS } from 'css-matrix3d'
const css = generateCSS(scale(2,2), translate(50, 50, 50), rotate('x', 30))
// Will get 'matrix3d(2,0,0,0,0,-1.8243761378545968,0.8195435971482816,0,0,-0.4097717985741408,-0.9121880689272984,0,50,50,50,1)'