html:
<div id="app">
<input v-model="query" />
<ul>
<li v-for="item in list | filterBy query" transition="staggered" stagger="100">
{{item.msg}}
</li>
</ul>
</div>
js:
new Vue({
el:'#app',
data:{
query:'',
list:[
{'msg':'mike'},
{'msg':'nise'},
{'msg':'ookk'}
]
}
});
css:
ul {
padding-left: 0;
font-family: Helvetica, Arial, sans-serif;
}
.staggered-transition {
transition: all .5s ease;
overflow: hidden;
margin: 0;
height: 20px;
}
.staggered-enter, .staggered-leave {
opacity: 0;
height: 0;
}