在锚点更改滚动方向 [英] Change scroll direction at Anchor point

查看:111
本文介绍了在锚点更改滚动方向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网站上我有6个div,每个div与浏览器窗口的高度和宽度相同,因此5个不在视图中,3个左对齐,然后3个在顶部,因此....

on my site I have 6 divs each div the same height and width of the browser window, so 5 are out of view, 3 left aligned then 3 more on top, as so....

当我的访客滚动时,id喜欢滚动到第3个div,然后向上滚动到第4个,然后继续水平滚动。这有可能与jQuery,如果是这样,它怎么办?

When my visitors scroll, id like to scroll along to the 3rd div, then scroll up to the 4th, then continue scrolling horizontally. Is this possible with jQuery, and if so how can it be done?

推荐答案

检查一下。它允许您向不同方向滚动并设置如上所述的幻灯片

Check this out. It allows you to scroll in different directions and set up "slides" like above

http://joelb.me/scrollpath/

这篇关于在锚点更改滚动方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆