css - 关键帧动画转换未在 chrome 中运行

标签 css google-chrome css-animations

以下似乎适用于 Firefox 和 Safari,甚至 IE!但在 Chrome 中

(适用于 Firefox 和 IE,但如果您在 Chrome 中打开它,您什么​​也看不到!)

@keyframes animationFrames{
  0% {
    transform:  translate(-402px,55px)  ;
  }
  4% {
    transform:  translate(-333px,26px)  ;
  }
  9% {
    transform:  translate(-257px,-13px)  ;
  }
  14% {

最佳答案

那是因为@keyframes 规则是not supported通过 Chrome 呢。您必须使用带前缀的规则 @-webkit-keyframes,例如:

/* Chrome, Safari, Opera */ 
@-webkit-keyframes animation {
    0% { }
    100% { }
} 

/* Standard syntax */ 
@keyframes animation {
    0% { }
    100% { }
}

更新

I'm sureexample

关于css - 关键帧动画转换未在 chrome 中运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29759250/

相关文章:

jquery - 将内部跨度拉伸(stretch)到它的外部父 div 空间,但内部跨度应缩放到外部 div 高度宽度

html - 仅带波纹动画 CSS 的戒指

html - 使用 flexbox 将图像排成一行

html - float : right not working properly in Firefox addon Code

html - 嵌套 Flexbox 未在 chrome 或 IE 中换行

html - 直接在 iframe 中查看 PPT 文件(使用 Chrome Office Viewer?)

html - 我的 CSS 动画中缺少什么?

css - 响应式 CSS3 链式动画、暂停和恢复问题

html - 更改屏幕大小时,文本和按钮会移位

html - chrome 中 div 之间的奇怪空间