Skip to content

Latest commit

History

History
56 lines (43 loc) 路 861 Bytes

README.md

File metadata and controls

56 lines (43 loc) 路 861 Bytes

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