a DOM animation library using easing functions
npm install dom-ease* 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
npm i dom-ease
js
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' })
``