【发布时间】:2021-05-12 10:12:56
【问题描述】:
我有两个文本,我希望它们彼此出现。我制作了一个动画,让它们出现在不同的时间。 动画代码
@keyframes t1 {
0% {opacity: 1;}
30%{ opacity: 1;}
40%{opacity: 0;}
90%{ opacity: 0;}
100% {opacity: 1; }
}
@keyframes t2 {
0% {opacity: 0; }
40%{opacity: 0;}
50%{opacity: 1;}
80%{opacity: 1;}
90%{opacity: 0;}
100% {opacity: 0; }
}
this is my first text and I want my second text to appear when first one dissappears
【问题讨论】:
标签: html css sass frontend web-frontend