Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dmotz/maskew

▰ Add some diagonal rhythm to your elements
https://github.com/dmotz/maskew

animation coffeescript javascript jquery

Last synced: 18 days ago
JSON representation

▰ Add some diagonal rhythm to your elements

Awesome Lists containing this project

README

        

![Maskew](https://oxism.com/maskew/demo/logo.png)

# [Maskew](http://dmotz.github.com/maskew)

#### Skew the shapes of elements without distorting their contents

[Dan Motzenbecker](http://oxism.com), MIT License

[@dcmotz](http://twitter.com/dcmotz)

### Features

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

### [Demos](http://dmotz.github.com/maskew)

### Usage

Use it:

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

// or

var maskew = new Maskew('#skew-me', angle)
```

With jQuery:

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

Add some touch:

```javascript
// from the start:

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

// or:

maskew.setTouch(true)

// disable touch:

maskew.setTouch(false)
```