【发布时间】:2012-08-14 16:35:19
【问题描述】:
我正在浏览一些单页网站示例,发现:http://alwayscreative.net/。我对背景中无限旋转的圆盘感到非常惊讶。我看过一些例子,但没有一个是这样的。谁能告诉我这是如何实现的。 谢谢。
【问题讨论】:
-
-browserSpecificSyntax-animation: 30s linear 0s normal none infinite rotation1; -
@Ohgodwhy:使用任何其他图像在我的网页中都不起作用。
-
@Anuj Kaithwas well duh...那是因为
rotation1是一个预定义的 CSS 键...@-webkit-keyframes rotation1 { /* line 220, ../sass/screen.scss */ from { -webkit-transform: rotate(0deg); -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -o-transform: rotate(0deg); transform: rotate(0deg); }why not just inspect this CSS file and check out the keyframes within?
标签: javascript jquery css jquery-animate css-animations