gpt4 book ai didi

animation - IE10 - CSS 动画不工作

转载 作者:技术小花猫 更新时间:2023-10-29 11:13:53 26 4
gpt4 key购买 nike

我有一个比例动画在 IE10 中运行了大约一天然后停止了。我没有做任何更改,也不确定会发生什么情况会破坏它。

有人有什么想法吗?当我查看 IE 开发工具时,它没有选择动画名称,而是选择了所有其他属性。

这是 CSS:

@-ms-keyframes move97
{
0% {
transform:scale(1,1);
-ms-transform:scale(1,1);
-moz-transform:scale(1,1);
-webkit-transform:scale(1,1);
-o-transform:scale(1,1);
}
50% {
transform:scale(0.97,0.97);
-ms-transform:scale(0.97,0.97);
-moz-transform:scale(0.97,0.97);
-webkit-transform:scale(0.97,0.97);
-o-transform:scale(0.97,0.97);
}
100% {
transform:scale(1,1);
-ms-transform:scale(1,1);
-moz-transform:scale(1,1);
-webkit-transform:scale(1,1);
-o-transform:scale(1,1);
}
}

.press97
{
-ms-animation-name: move97 0.2s; /* note MS has this different.... ugh */
animation: move97 0.2s;
-moz-animation: move97 0.2s; /* Firefox */
-webkit-animation: move97 0.2s; /* Safari and Chrome */

animation-timing-function: linear;
-moz-animation-timing-function: linear;
-webkit-animation-timing-function: linear;
-ms-animation-timing-function: linear;

animation-fill-mode: forwards;
-webkit-animation-fill-mode: forwards;
-moz-animation-fill-mode: forwards;
-ms-animation-fill-mode: forwards;
}

最佳答案

标准语法是supported in Internet Explorer 10在关键帧声明和 animation-name 属性上都不需要 -ms 前缀。事实上,IE10 和其他厂商的产品一样,也单独支持简写 animation 属性:

@keyframes myanimation {
0% { color: black; }
80% { color: gold; transform: translate(20px,20px); }
100% { color: black; translate(0,0); }
}

#anim {
display: inline-block;
animation: myanimation 5s 5; /* use myanimation 5s duration, 5 times */
}

fiddle :http://jsfiddle.net/ZfJ4Z/1/

关于animation - IE10 - CSS 动画不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10355411/

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