Rare IE10 bug: CSS animation of background-position fails with multiple backgrounds and percentage

久未见 提交于 2019-12-02 03:41:22

问题


This is a very specific bug - however, I would love for someone to show me a workaround! The bug basically consists in IE10 failing to do CSS animation of background-position when these two conditions are met at the same time:

  • Having multiple backgrounds
  • Setting background-position in percent

Here's a demo, compare Chrome with IE10:

http://codepen.io/dalgard/pen/LiyIK


回答1:


You need to put a percentage sign after the zeros. It must be so:

@keyframes move {
  0% { background-position: 0%, 0%; }
  100% { background-position: 0%, 100%; }
}


来源:https://stackoverflow.com/questions/17053703/rare-ie10-bug-css-animation-of-background-position-fails-with-multiple-backgrou

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!