Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/bezenson/meeink

Material Design click effect
https://github.com/bezenson/meeink

bower click css-animations demo effect effects ink jquery jquery-plugin material npm-package plugin

Last synced: about 2 months ago
JSON representation

Material Design click effect

Awesome Lists containing this project

README

        

# MeeInk v1.0.0

MeeInk is a jQuery plugin which allows you to easily add **material design** ink effect to elements when you click them.

Plugin is based on CSS animation what give you good performance including mobile devices.

## Demo

Check out demo page [here][demo].

[demo]: http://inferusvv.github.io/meeink/index.html

## Setup

### Install with Bower

```sh
bower install MeeInk --save
```

### Install with NPM

```sh
npm install meeink --save
```

### Include scripts

```html

```

### Include styles

```html

```

### Initialize plugin

```javascript
$(document).ready(function() {
$('.btn').meeInk({
// options
});
});
```

## Documentation

Plugin have several number of options which allows you to customize it as you want.

#### animationClass

```javascript
animationClass: 'mee-ink-animated mee-ink-animation'
```

Class which triggers to start CSS animation.

#### elementClass

```javascript
elementClass: 'mee-ink-el'
```

Class that is added to initialized element.

#### inkClass

```javascript
inkClass: 'mee-ink'
```

Class for ink inside element with styles.

#### overflowHiddenClass

```javascript
overflowHiddenClass: 'mee-ink-overflow-hidden'
```

Class will be added if your element don't have ```overflow: hidden```.

#### positionRelativeClass

```javascript
positionRelativeClass: 'mee-ink-pos-relative'
```

Class will be added if your element have ```position: static```, because ink inside element positioned absolutely relative to element.

## Issues

Found an issue? You are welcome [here][issues].

[issues]: https://github.com/inferusvv/MeeInk/issues