Use animate.css transitions to animate entry and leave on list of items based on an array with smooth move of surrounding elements.
npm install animate-group --save
const AnimateGroup = require('animate-group').default;
module.exports = {
components: {
AnimateGroup
} ...
Vue.component('AnimateGroup', AnimateGroup);
Prop | Type | Description | Required | Default |
---|---|---|---|---|
animationIn | String | Animation entry name | Y | |
animationOut | String | Animation leave name | Y | |
animationDuration | Number | Animation duration in seconds | Animate.css default | |
smoothMove | Boolean | Specifies whether surrounding elements will occupy placement of inserted/removed element in smoothly way | true | |
instantMove | Boolean | Instant move of surrounding elements on leave transition - removed element will be detached from normal document flow. Surrounding elements will be moved immediately - rather when animation ends. Applied only for out transition | true |
Name | Description |
---|---|
(default) | List of items based on array in form of v-for directive |