Change number with flipping animation
$ npm install --save number-flip
import Flip from 'number-flip'
new Flip({
node: $('.flip'),
from: 9527,
to: 42
})
new Flip({
node: $('.flip'),
from: 9527,
to: 42,
delay: 1000
})
const el = new Flip({
node: $('.flip'),
from: 9527
})
el.flipTo(42)
new Flip({
node: $('.flip'),
from: 9527,
to: 42,
duration: 2000
})
- css3 animation - instead of a picture
- flip with FLIP
- browser compatibility list
- thresh maybe
MIT
- fork this repo
git checkout -b NEW-FEATURE
git commit -am 'ADD SOME FEATURE'
git push origin NEW-FEATURE