【发布时间】:2014-09-28 15:38:23
【问题描述】:
我有一个在背景中有图像的 div,它缓慢地向左移动。当它到达图像的末尾时,它开始向右移动。它一遍又一遍地重复这个动画。
这是我的小提琴:http://jsfiddle.net/49H65/2/
它似乎在 Chrome 和 Safari 中完美运行,但我无法让它在 Firefox 中运行。
这是可能导致问题的 jQuery 代码的 sn-p,但我不能 100% 确定:
infiniteAnimate( $('header.nb-slider') ,{
on:{
'background-position-x': -slideAnimate,
'background-position-y': 0
},off:{
'background-position-x': $('header.nb-slider').css('background-position-x'), //use style
'background-position-y': $('header.nb-slider').css('background-position-y') //use style
}
});
任何帮助将不胜感激。谢谢!
【问题讨论】:
标签: jquery firefox animation cross-browser