Maskew: JS library

Maskew a JS library for skewing the shapes of elements.

Maskew: JS library for skewing the shapes of elements

Features

  • Less than 5kb
  • Mobile Friendly
  • No Dependencies (but a modern browser)
  • Also support with jQuery

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);

Development: maskew.js
Minimized: maskew.min.js
Github URL: github