我试图弄清楚为什么我在我的 css 中添加的动画名称样式没有从我的开发环境复制到我的生产环境。
这是我的生产环境中的代码。
@keyframes a {
0% {
opacity: 0
}
to {
opacity: 1
}
}
.site-main__home-links {
animation: a 2s
}
这是我的开发环境中的代码。
@-webkit-keyframes fadeButtons {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fadeButtons {
from { opacity: 0; }
to { opacity: 1; }
}
.site-main__home-links {
-webkit-animation: fadeButtons 2s;
animation: fadeButtons 2s;
}