Create flyball animation so easy ๐
$ npm i flyball --save
# or
$ yarn add flyball
import flyball from 'flyball'
import 'flyball/dist/flyball.css'
const from = document.getElementById('from')
const to = document.getElementById('to')
flyball(from, to)
const from = { top: 0, left: 100 }
const to = { top: 100, left: 0 }
flyball(from, to)
const from = { top: 0, left: 100 }
const to = document.getElementById('to')
flyball(from, to)
$ npm run dev
- Fork it! ๐
- Create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a PR ๐ป
MIT @ Limichange