gpt4 book ai didi

CSS关键帧动画边框问题

转载 作者:太空宇宙 更新时间:2023-11-04 02:10:55 26 4
gpt4 key购买 nike

我正在尝试平滑地制作一些 css 三 Angular 形的动画,我有这个:

但没有任何反应 - 谁能给我指出正确的方向。

感谢:

    .angle-1 {
position: absolute; bottom: 0;
width: 0; height: 0;
border-style: solid;
border-width: 200px 0 0 1440px;
border-color: transparent transparent transparent #007bff;
opacity: 0.7;
-webkit-animation: moveangle1 2s infinite;
-moz-animation: moveangle1 2s infinite;
-o-animation: moveangle1 2s infinite;
animation: moveangle1 2s infinite;
}
@keyframes moveangle1,
@-o-keyframes moveangle1,
@-moz-keyframes moveangle1,
@-webkit-keyframes moveangle1 {
0% { border-width: 200px 0 0 1440px; opacity: 0.7; }
100% { border-width: 400px 0 0 1000px; opacity: 0.4; }
}

这是一个例子:https://jsfiddle.net/sp2emgtc/

最佳答案

您不能将带有供应商前缀的关键帧语句组合成一个规则。

必须单独说明。

.angle-1 {
width: 0;
height: 0;
border-style: solid;
border-width: 200px 0 0 1440px;
border-color: transparent transparent transparent #007bff;
opacity: 0.7;
-webkit-animation: moveangle1 2s infinite;
animation: moveangle1 2s infinite;
}
@-webkit-keyframes moveangle1 {
0% {
border-width: 200px 0 0 1440px;
opacity: 0.7;
}
100% {
border-width: 400px 0 0 1000px;
opacity: 0.4;
}
}
@keyframes moveangle1 {
0% {
border-width: 200px 0 0 1440px;
opacity: 0.7;
}
100% {
border-width: 400px 0 0 1000px;
opacity: 0.4;
}
}
<div class="angle-1">

</div>

关于CSS关键帧动画边框问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39766281/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com