Skip to content

dmotz/maskew

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Jan 19, 2019
Jan 19, 2019
Jan 19, 2019
Feb 20, 2014
Jan 19, 2019
Jan 19, 2019

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)

About

▰ Add some diagonal rhythm to your elements

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published