Skip to content

dean8/css-transform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

css-transform

a function that converts visual css transform to its real position.

v1.0.3

@param

  • options [object] rotate element options {x, y, width, height}
  • angle [number] totate angle

@return

{ point: { topLeft, topRight, bottomLeft, bottomRight }, width, height, left, right, top, bottom }

Usage

npm i css-transform
var transform = require("css-transform");
console.log({
  x: 50,
  y: 50,
  width: 100,
  height: 100
}, 60);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published