1.3.0 • Published 8 years ago

easy-step v1.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

EASY STEP

helps to handle stepped animation programmatically

travis build travis build

Installation

npm

npm i easy-step

cdn

<script src="https://unpkg.com/easy-step@1.2.1/dist/index.umd.min.js"></script>

Usage

browser

var stepper = new EasyStep()

es5 umd

var EasyStep = require('easy-step')

var stepper = new EasyStep()

es6

import EasyStep from 'easy-step'

var stepper = new EasyStep()

Constructor EasyStep

ParametertypeStatusDescription
triggerDOM elementoptionalUse it to trigger animation, also you can use api to trigger animation so it's optional
itemsanyrequireditem that should be animated, can be everything because they will be passed in callback as parameter
delayIntrequireddelay animation

API

functionparamsReturnDescription
onString, functionnullsubscribe on event
offString, functionnullunsubscribe on event
triggernulltrigger amination
reverseDirectionnullreverse animation direction
isForwardBoolcheck if forward
isBackwardBoolcheck if backward

Events

eventcallback args typeDescription
forwardanyfires on forward
backwardanyfires on backward
completeanyon all items animated
1.3.0

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago