如何实现webkit动画:backgroundmove
我见过某种 webkit 动画类型:backgroundmove。它基本上只是在页面上滚动背景,等等。
我为基本的 -webkit-backgroundmove 动画编写了一些 css 简介,但它不起作用!我已经在 IE9/FF4/Chrome(最新)上尝试了一切。问题:是否有什么东西干扰了动画,使其无法启动?背景显示出来,但不会线性滚动,所以我猜测 -webkit-animation 存在干扰或问题
我的 css 非常基本:
div#wrapper.cloud-animation {
background-image: url(../images/clouds.png);
background-size: 120%;
background-repeat: repeat-x;
background-position: -10px 150px;
-webkit-animation: backgroundmove infinite 50s linear;
}
我什至无法在网上找到“webkit backgroundmove”的文档,所以如果有人知道在哪里可以找到它,这将是一个很大的帮助!谢谢 -
I've seen a certain webkit animation type: backgroundmove. It basically just scrolls your background across the page, etc.
I've written a little css blurb for a basic -webkit-backgroundmove animation, but it doesn't work! I've tried everything on IE9/FF4/Chrome (latest). Question: is there something that interferes with the animation, keeping it from starting? The background shows up, but doesn't scroll linearly, so I'm guessing that there's interference or a problem with -webkit-animation
My css is really basic:
div#wrapper.cloud-animation {
background-image: url(../images/clouds.png);
background-size: 120%;
background-repeat: repeat-x;
background-position: -10px 150px;
-webkit-animation: backgroundmove infinite 50s linear;
}
I can't even find documentation online for "webkit backgroundmove" so if anyone knows where to find it, that would be a big help! Thanks -
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
backgroundmove
是自定义动画,不存在,需要自己定义。看看 https://developer.mozilla.org/en/css/css_animations
backgroundmove
is a custom animation, it doesn't exist, you need to define it yourself.Have a look at https://developer.mozilla.org/en/css/css_animations