您现在的位置是:网站首页>软件开发>前端技术栈>css/sass/lesscss/sass/less
animate.css效果重复使用
风口下的猪2020-12-26【css/sass/less】
简介
animate.css的重复,一定是页面或者局部重新渲染了,不然不会触发。
例子
<view :class="isChange==1?'animated bounceIn':' ' "></view>
watch:{
cartdata:{
handler(newVal,oldVal){
this.isChange==0;
this.$nextTick(()=>{
this.isChange==1;
});
},deep:true
}
}
例子中深度监听购物车数据,当有数据变化时,改变isChange,并在下次渲染时后再次改变,已达到重复效果。
很赞哦! (0)
/ponder/index.php/index/catelist/catelist/cateid/10.html