vue中appear的用法

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

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

别忘了引用vue.js

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

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

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

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

2、appear-active-class、appear-class、 appear-to-class

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

3、appear-class、appear-active-class、 appear-to-class

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

4、 appear-to-class、 appear-active-class、appear-class

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

enter也有相似的问题

总结

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

原文链接:https://www.f2er.com/vue/37053.html

猜你在找的Vue相关文章