admin管理员组文章数量:1435859
I am trying to build a site using skrollr. This is the jFiddle link to what I have tried yet. But as you can see it doesn't work as expected when the smoothScrolling is set to true. When setting smoothScrolling = false, things like to work as bit but there are glitches.
skrollr.init({
forceHeight: true,
smoothScrolling:true
});
- I want to make smoothScrolling = true, but what I am missing here.
- Also how can I disable the vertical scroll. Giving overflow:hidden doesn't work, as it will disable skrollr. Also I tried this link, but I couldn't make it to work. The only thing worked is link, but again its only for Webkit browsers. Is there any browser patible solution for this?
Thanks in advance.
I am trying to build a site using skrollr. This is the jFiddle link to what I have tried yet. But as you can see it doesn't work as expected when the smoothScrolling is set to true. When setting smoothScrolling = false, things like to work as bit but there are glitches.
skrollr.init({
forceHeight: true,
smoothScrolling:true
});
- I want to make smoothScrolling = true, but what I am missing here.
- Also how can I disable the vertical scroll. Giving overflow:hidden doesn't work, as it will disable skrollr. Also I tried this link, but I couldn't make it to work. The only thing worked is link, but again its only for Webkit browsers. Is there any browser patible solution for this?
Thanks in advance.
Share Improve this question edited May 23, 2017 at 12:18 CommunityBot 11 silver badge asked Jun 7, 2013 at 4:16 JithinJithin 2,6041 gold badge24 silver badges42 bronze badges 1- To set your page to allow overflow in one direction, use overflow-x:visible; overflow-y:hidden; allowing you to create a sidescrolling page. – Thomas Cheney Commented Jan 10, 2014 at 23:04
2 Answers
Reset to default 3You want smooth scrolling for the left
movement, but now for top
. You need another wrapper element and use data-smooth-scrolling="off"
on it.
http://jsfiddle/GpPHx/2/
If you want to hide the scrollbar, skrollr may not be the right choice for what you're trying to do.
Hi Prinzhorn and thanks for the great library. Your jsfiddle solution is perfect for Chrome, however it is still jiggy a bit in Firefox and it is pletely not working for Safari. Can you make a suggestion for those browsers. I really want to implement horizontal scrolling, and I notice on the site of the walking dead it is working fine, however there the code is over-plicated
本文标签: javascriptskrollrHorizontal scroll with smooth scrolling not workingStack Overflow
版权声明:本文标题:javascript - skrollr : Horizontal scroll with smooth scrolling not working - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745643471a2667994.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论