?
css 代碼?
.gradientAnimation {
animation-name: gradient;
animation-duration: 0.85s;
animation-fill-mode: forwards;
opacity: 0;
}
/* 不帶前綴的放到最后 */
@keyframes gradient {
0% {
opacity: 0;
transform: translate(-100px, 0px);
}
100% {
opacity: 1;
transform: translate(0px, 0px);
}
}
封裝的列表組件,我是直接循環(huán)列表組件的,并且加了一個index 屬性
直接傳遞給子組件的第一個 元素上
?文章來源:http://www.zghlxwxcb.cn/news/detail-612221.html
這樣就能實(shí)現(xiàn)列表一項(xiàng)接一項(xiàng)進(jìn)入的效果動畫了?文章來源地址http://www.zghlxwxcb.cn/news/detail-612221.html
到了這里,關(guān)于Vue 中通用的 css 列表入場動畫效果的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!