0.1.1 • Published 4 years ago
kween v0.1.1
Get started
Install
npm install --save kween
# or
yarn add kween
Use
import { tween, bounceInOut } from 'kween'
tween({
duration: 1000, // in milliseconds
ease: bounceInOut,
onUpdate: (value, progress) => {
// value is eased, progress is linear
console.log(value, progress)
},
})