"粘性"滚动位置 [英] "Sticky" Scroll Positions

查看:94
本文介绍了"粘性"滚动位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法根据滚动位置构图内容;每当用户滚动经过某个标记点时,页面被推动(锁定)到某个位置(幻灯片),引导用户查看该幻灯片上的内容(该页面基于 https://github.com/richardshepherd/Parallax-Scrolling/ )。将有多个标记点,因此引导用户查看幻灯片上的内容。

Is there any way to frame content based on scroll position; Whenever a user scrolls past a certain marker point the page is pushed (locked) to a certain position (slide) guiding the user to view the content on that slide (the page is based on https://github.com/richardshepherd/Parallax-Scrolling/). There would be multiple marker points so the user is guided to view the content on the slides.

推荐答案

是。有一个漂亮的小jquery插件可以处理这个问题: https://github.com/bigspotteddog/ScrollToFixed

yes. There is a nifty little jquery plugin that handles this: https://github.com/bigspotteddog/ScrollToFixed

或者您可以参考以前关于相同主题的帖子:在某个点停止固定位置滚动?

or you can reference this previous post dealing with the same subject matter: Stopping fixed position scrolling at a certain point?

这篇关于"粘性"滚动位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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