Chaser
JavaScript variable chaser
Installation
npm install --save chaser
Usage
const chaser = const myAnimatedVar = // 12 is our initial value heremyAnimateVartarget = 20
useChaser
Chaser using React Hooks with { const posX setPosX = return <div style= transform: `translateX(px)` > <button onClick= /> </div> }
Example
If you're looking for an example, here's a unclean example! but works: https://alireza29675.github.io/chaser/
Contribute
Put issues! Suggest me what you need.