小程序 animation 失效 高度闪烁

animation无效

uniapp开发时候 v-show和animation一起使用
必须在nextTick中执行动画,否则无效

this.$nextTick(() => {
    this.showStar()
})

该表的值必须在style中写上

animation高度闪一次

小程序性能较差,animation本质上使用style内联导致高度有一次闪烁,可以使用内联的style写死width和height

发表新评论