Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kt3k/multiflip

Animation of dom, flipping its sections for showing and hiding the whole
https://github.com/kt3k/multiflip

capsid component dom ui

Last synced: about 9 hours ago
JSON representation

Animation of dom, flipping its sections for showing and hiding the whole

Awesome Lists containing this project

README

        

# multiflip v5.2.0

> Animation of dom, flipping its sections for showing and hiding the whole

***Note:*** This library depends on jQuery class-component and es6-promise.

# Usage

Load jquery, class-component and multiflip, then put dom with the class name `multiflip`.

```js


Example

.multiflip { width: 400px; height: 200px; }

```

The meaning of attrs:
- attr {number} m The horizontal partition number
- attr {number} n The vertical partition number
- attr {number} unit-dur The duration showing and hiding the unit chip. default 400
- attr {number} content-show-dur The duration of showing and hiding the content. default 400
- attr {string} bgcolor The background color

### [demo](http://kt3k.github.io/multiflip/test.html) (chrome)

# Install

Via npm:

npm install multiflip

# License

MIT