在一页中,我有一个带有自定义动画的按钮,该按钮依赖于以下过程:
从以上所述,除#3之外,所有步骤均适用于Safari。
@-webkit-keyframes topBubbles {
0% {
background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%, 40% 90%, 55% 90%, 70% 90%;
}
50% {
background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%, 50% 50%, 65% 20%, 90% 30%;
}
100% {
background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%, 50% 40%, 65% 10%, 90% 20%;
background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
}
}
https://jsfiddle.net/wLvb9n0f/
我对此进行了研究,到目前为止,我发现的唯一发现是,对于Safari来说,必须使用全部百分比,而我已经在这样做了。如何使该动画在Safari中工作?