kween
v0.1.1
Published
Simple tween library written in Typescript
Downloads
1
Maintainers
Readme
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)
},
})