我希望通过鼠标悬停图像从右向左滚动图像。字幕已过时。我试过了,但是图像没有滚动。
我不知道从哪里开始。我用谷歌搜索,但对我不起作用。
我正在尝试通过以下代码实现它。我需要在无限循环RTL中自动滚动的图像。任何帮助将不胜感激。 Scroll right to left
$('a').click(function(event) {
event.preventDefault();
$('#hello').stop().animate({
scrollLeft: $(this).index() * $('#hello').width()
}, 5700);
});