【发布时间】:2014-05-31 04:19:10
【问题描述】:
看看这段代码: CSS:
@-webkit-keyframes crashChrome {
0%{ -webkit-transform: translateX(0rem);}
}
.anim:before{
content: "";
width: 3rem;
height: 3rem;
border-radius: 3rem;
position: absolute;
left:5rem;
top: 5rem;
background-color: #06839f;
-webkit-animation: crashChrome;
}
HTML
<div class="anim"></div>
代码可以在这里找到:http://codepen.io/OpherV/pen/xsemw/
如果你在 chrome 中打开它,你会得到:
http://codepen.io/OpherV/pen/xsemw/
我认为这与伪元素和转换有关。 怎么解决?
【问题讨论】:
标签: html css google-chrome css-animations