transitions
the animation kits for vue components transition
Installation
npm i @litt1e-p/transitions
Usage
- global registration
// in main.js
import Transitions from '@litt1e-p/transitions'
import '@litt1e-p/transitions/dist/transitions.css'
Vue.use(Transitions)
- or use as vue component
// in your vue file
import { transitions } from '@litt1e-p/transitions'
export default {
components: {
transitions
}
...
}
- use in template
eg. use
zoom
transition effect
<transitions type="zoom">
<component :is="your componet"></component>
</transitions>
if your does not provide any type, it will apply random effect instead
Configuration
all types of effect
- collapseHorizonal
- collapseVertical
- slideBottom
- slideTop
- slideLeading
- slideTrailing
- fade
- zoom