Css 缩放动画在 Chrome 中不起作用

标签 css google-chrome

我正在使用以下内容为文本提供一种脉动效果,但动画在 chrome 中似乎不起作用。我做错了什么?

.item{
    -webkit-animation: caMenuTextOut 600ms ease-in-out;
    -moz-animation: caMenuTextOut 600ms ease-in-out;
    animation: caMenuTextOut 600ms ease-in-out;
}
@keyframes caMenuTextOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0;
        transform: scale(2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

最佳答案

Chrome doesn't support standard animations yet .使用供应商前缀:@-webkit-keyframes。您可以在 @keyframes 的同时拥有它,但不幸的是,您必须声明整个事情两次。

http://jsfiddle.net/ExplosionPIlls/85hE5/

关于Css 缩放动画在 Chrome 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23397135/

相关文章:

html - 仅使用 CSS 隐藏 Div

javascript - 将自定义 CSS 添加到使用 webview 呈现的 HTML 页面

css - 推特 Bootstrap : No margin between columns

javascript - polymer 核心列表在 Chrome 中不起作用

HTML 页面更改未显示在用户的 Chrome 浏览器中

jquery - 将 css 转换为复选框的 jquery css

php - Wordpress >> 为不同的页面使用不同的 CSS

javascript - 使用自定义协议(protocol)或 url 方案时,window.open() 方法会在 Google Chrome 中打开一个空白页面

javascript - 包含 chrome 条件后,自动化服务器无法在 IE8 中创建对象

google-chrome - 与监听器不一致 - 一台计算机上的 onUpdated 和另一台计算机上的 onReplaced