javascript - 使用jquery从右到左滚动图像
问题描述
我正在寻找从右到左滚动图像的悬停图像。选框已过时。我试过了,但图像没有滚动。
我不知道从哪里开始。我用谷歌搜索但不适合我。
我试图通过下面的代码来实现它。我需要图像在无限循环 RTL 中自动滚动。任何帮助将不胜感激。从右向左滚动
$('a').click(function(event) {
event.preventDefault();
$('#hello').stop().animate({
scrollLeft: $(this).index() * $('#hello').width()
}, 5700);
});
解决方案
推荐阅读
- python - 光学字符识别多行检测
- onedrive - 共享链接的 OneDrive API 过期
- javascript - 如何在 React Native 中进行搜索?
- batch-file - 使用 wmic 仅查找以太网 MAC 地址
- scala - 如何在apache spark中对两个数据集进行基于时间的连接?
- java - 链式规划实体中的 CustomChangeMove 引发 IllegalStateException (Optaplanner)
- c++ - Qt 样式表的用途是什么以及它们是如何工作的?
- r - 无法在 WRDS Interactive R 会话中安装 R 包
- java - java,如果超类使用try/catch,为什么扩展类不能用方法定义中的抛出和检查异常覆盖超类方法
- mysql - 如何在vs17中使用mysql在剃须刀中显示下拉列表