【发布时间】:2017-10-27 19:51:03
【问题描述】:
我的 CSS 动画在 Firefox 和 Chrome 上运行良好,但在 Safari 上会抖动。
在这个页面上: http://www.warhaftig.com/access-marketing.html
CSS:
/* ------------- msg -------*/
@-webkit-keyframes animate-selection {
from {
font-size: 2.7em;
color: #a6a6a6;
}
to {
font-size: 2.9em;
color: #fff;
}
}
@keyframes animate-selection {
from {
font-size: 2.7em;
color: #a6a6a6;
}
to {
font-size: 2.9em;
color: #fff;
}
}
.msg-marketing li.selected-msg a {
font-family: 'Neue Haas Unica W01 Medium It', arial, helvetica, sans-serif;
font-size: 2.9em;
letter-spacing: 0.02em;
font-weight: 500;
color: #fff;
line-height: 34px;
display: -webkit-box;
display: box;
width: 100%;
-webkit-animation: animate-selection 600ms ease-out; /* Safari 4.0 - 8.0 */
animation-name: animate-selection;
animation-duration: 600ms;
animation-delay: 0s;
animation-timing-function: ease-out;
}
我正在添加一个.selected-msg 类,以便在选择 li 文本时为其设置样式。
【问题讨论】: