首页 > 解决方案 > 使用jquery从右到左滚动图像

问题描述

我正在寻找从右到左滚动图像的悬停图像。选框已过时。我试过了,但图像没有滚动。

我不知道从哪里开始。我用谷歌搜索但不适合我。

我试图通过下面的代码来实现它。我需要图像在无限循环 RTL 中自动滚动。任何帮助将不胜感激。从右向左滚动

$('a').click(function(event) {
    event.preventDefault();
    $('#hello').stop().animate({
        scrollLeft: $(this).index() * $('#hello').width()
    }, 5700);
});

标签: javascriptjqueryhtmlcssinfinite-scroll

解决方案


推荐阅读