我正试图慢慢地为div的背景位置设置动画,但没有它有生涩的动作.您可以在此处查看我当前工作的结果:
@-webkit-keyframes MOVE-BG {
from {
background-position: 0% 0%
}
to {
background-position: 187% 0%
}
}
#content {
width: 100%;
height: 300px;
background: url(http://www.gstatic.com/webp/gallery/1.jpg) 0% 0% repeat;
text-align: center;
font-size: 26px;
color: #000;
-webkit-animation-name: MOVE-BG;
-webkit-animation-duration: 100s;
-webkit-animation-timing-function: linear;
-webkit-animation-iteration-count: infinite;
}
Run Code Online (Sandbox Code Playgroud)
我已经在这里工作了几个小时,找不到任何可以在亚像素级别缓慢而平滑地制作动画的东西.我当前的示例来自此页面上的示例代码:http://css-tricks.com/parallax-background-css3/
我可以在这个页面的translate()示例中看到我所追求的动画的流畅度:
http://css-tricks.com/tale-of-animation-performance/
如果无法使用background-position完成,是否有办法用多个div伪造重复背景并使用translate移动这些div?
我已经忍受了这个可能太久了.出于某些奇怪的原因,当我使用Photoshop CS5吸管工具时,它会设置背景颜色 - 这真的很烦人.在我使用Photoshop的这些年里,我从未体验过这一点.每次设置颜色时,我都会被迫使用x键盘快捷键来交换背景/前景色.
如何将吸管工具恢复到默认设置?(无需重新安装:)
我正在使用github for mac app http://desktop.github.com/,每次我尝试同步一个分支时,我得到一个A network error occurred. We could not sync with the server.Everything工作正常,我的机器其他机器能够与同一个应用程序运行同步.我不知道如何调试这个.