0.9.3 • Published 7 years ago

dom-ease v0.9.3

Weekly downloads
42
License
MIT
Repository
github
Last release
7 years ago

dom-ease

a simple and super fast DOM animation library

rationale

This is a simple library to animate DOM objects. It does not have all the bells and whistles of a library like Velocity.js, but it gets the job done with a nice event system.

features

Here's a list of supported animations:

  • top / left in px
  • scale
  • scaleX / scaleY
  • color - one or more colors to cycle through, including the current color
  • backgroundColor - one or more background colors to cycle through, including the current color
  • width / height in px
  • opacity
  • marginLeft, marginRight, marginTop, marginBottom in px
  • open a github issue if you want other parameters animated

Installation

npm i dom-ease

Live Demo

https://davidfig.github.io/dom-ease/

API Documentation

https://davidfig.github.io/dom-ease/jsdoc/

Simple Usage

    const Ease = require('dom-ease')

    // set up ease
    const ease = new Ease({ duration: 1500 })

    const div = document.getElementById('test')
    ease.add(div, { left: 100, top: 200, scale: 2 }, { reverse: true, repeat: true, duration: 2500, ease: 'easeInOutQuad' })

License

MIT License
(c) 2018 YOPEY YOPEY LLC by David Figatner

0.9.3

7 years ago

0.9.2

7 years ago

0.9.1

7 years ago

0.9.0

7 years ago

0.8.0

7 years ago

0.7.5

7 years ago

0.7.4

7 years ago

0.7.3

7 years ago

0.7.2

7 years ago

0.7.1

7 years ago

0.7.0

7 years ago

0.6.3

7 years ago

0.6.2

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.4

7 years ago

0.5.3

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago