🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Maskew is a JS library for skewing the shapes of elements without distorting their contents. It is mobile friendly. There is no dependencies but a modern browser. It is less than 5k in size.

Core Java Script Plugins

Documentation

Maskew

Maskew

Skew the shapes of elements without distorting their contents

Dan Motzenbecker, MIT License

@dcmotz

Features

  • < 5k
  • mobile friendly
  • no dependencies
  • optional jQuery plugin

Demos

Usage

Use it:

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

With jQuery:

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

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)

You May Also Like