vue中appear的用法

前端之家收集整理的这篇文章主要介绍了vue中appear的用法前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

关于appear的用法和enter的用法相似,它只是在第一次渲染的时候才会起作用。看完整的代码:@H_403_1@

别忘了引用vue.js@H_403_1@

<Meta charset="UTF-8"> 初始渲染的过渡

但是这里有一些问题:关于appear-class、 appear-to-class、 appear-active-class的相同属性那个起作用的问题。@H_403_1@

四种情况:(与他们在style中的排列顺序有关系)@H_403_1@

1、appear-class、 appear-to-class、 appear-active-class或者 appear-to-class、appear-class、 appear-active-class的排列顺序,此时只有appear-active-class的属性起作用。@H_403_1@

2、appear-active-class、appear-class、 appear-to-class@H_403_1@

此时appear-active-class的不起作用,由appear-class过渡到appear-to-class属性。@H_403_1@

3、appear-class、appear-active-class、 appear-to-class@H_403_1@

此时appear-class属性不起作用,由appear-active-class过渡到 appear-to-class属性。@H_403_1@

4、 appear-to-class、 appear-active-class、appear-class@H_403_1@

此时appear-to-class不起作用,由appear-class过渡到 appear-active-class属性。@H_403_1@

enter也有相似的问题@H_403_1@

总结

@H_403_1@

以上所述是小编给大家介绍的vue中appear的用法。编程之家 jb51.cc 收集整理的教程希望能对你有所帮助,如果觉得编程之家不错,可分享给好友!感谢支持。@H_403_1@

猜你在找的Vue相关文章