Skip to content

limichange/flyball

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

flyball

Create flyball animation so easy ๐Ÿ‘

Install

$ npm i flyball --save
# or
$ yarn add flyball

Usage

import flyball from 'flyball'
import 'flyball/dist/flyball.css'

Dom

const from = document.getElementById('from')
const to = document.getElementById('to')

flyball(from, to)

Position

const from = { top: 0, left: 100 }
const to = { top: 100, left: 0 }

flyball(from, to)

Position and dom

const from = { top: 0, left: 100 }
const to = document.getElementById('to')

flyball(from, to)

Development

$ npm run dev

Contributing

  • 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 ๐Ÿป

Author

MIT @ Limichange