如何使用 localscroll.js 进行水平导航
我想用本地滚动在我的投资组合上进行水平导航。 这是一个不同图片的画廊。
所以我有一个(div id =“project”),其中包含这样的链接:
<div id="projects">
<ul id="content-slider-inside">
<li id="one" class="pictures"><img src="images/paulotlet1.JPG" alt="paulotlet1" width="620" height="415" /></li>
<li id="two" class="pictures"><img src="images/paulotlet1.JPG" alt="paulotlet1" width="620" height="415" /></li>
<li id="three" class="pictures"><img src="images/paulotlet1.JPG" alt="paulotlet1" width="620" height="415" /></li>
<li id="four" class="pictures"><img src="images/paulotlet1.JPG" alt="paulotlet1" width="620" height="415" /></li>
<li id="five" class="pictures"><img src="images/paulotlet1.JPG" alt="paulotlet1" width="620" height="415" /></li>
</div> <!-- END PROJECTS -->
我想在您单击一个小箭头或键盘上的一个键时执行动画,滚动到下一个(li class ='pictures ') 的 (div id="projects")
非常感谢
I would like to do an horizontal navigation on my portfolio with local scroll.
This is a gallery of differents pictures.
So i have a (div id="project") with links like that:
<div id="projects">
<ul id="content-slider-inside">
<li id="one" class="pictures"><img src="images/paulotlet1.JPG" alt="paulotlet1" width="620" height="415" /></li>
<li id="two" class="pictures"><img src="images/paulotlet1.JPG" alt="paulotlet1" width="620" height="415" /></li>
<li id="three" class="pictures"><img src="images/paulotlet1.JPG" alt="paulotlet1" width="620" height="415" /></li>
<li id="four" class="pictures"><img src="images/paulotlet1.JPG" alt="paulotlet1" width="620" height="415" /></li>
<li id="five" class="pictures"><img src="images/paulotlet1.JPG" alt="paulotlet1" width="620" height="415" /></li>
</div> <!-- END PROJECTS -->
i would like to do an animation when you click on a little arrow or on a key of the keboard the scroll goes to the next (li class='pictures') of the (div id="projects")
Thanks a lot
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看演示以获取更多信息: http://demos.flesler.com/jquery/serialScroll/ 和 http://demos.flesler.com/jquery/localScroll/
Have a look at the demos for more info: http://demos.flesler.com/jquery/serialScroll/ and http://demos.flesler.com/jquery/localScroll/
应该是这样的:
确保您的
ul
具有属性display:inline;
should be something like this:
Make sure that your
ul
has the propertydisplay:inline;