.

M

A

S

K

E

W

Maskew by Dan Motzenbecker a JS library for skewing the shapes of elements < 5k mobile friendly no dependencies (but a modern browser) optional jQuery plugin maskew.js / maskew.min.js github

Use it:


var maskew = new Maskew(document.getElementById('skew-me'), angle);

With jQuery:


var $maskew = $('#skew-me').maskew(angle);

Skew it:


maskew.skew(9);

// or with jQuery:

$maskew.maskew('skew', 20);

// or:

$maskew.maskew().skew(20);

Add some touch:


// from the start:

var touchMe = new Maskew(document.getElementById('skew-me'), angle, { touch: true });

// or:

maskew.setTouch(true);

// disable touch:

maskew.setTouch(false);


See also:

oriDomi - fold up the DOM like paper