wtm / jquery.snapscroll Goto Github PK
View Code? Open in Web Editor NEWScrolling for single page websites.
Home Page: http://wtm.github.com/jquery.snapscroll/
License: Other
Scrolling for single page websites.
Home Page: http://wtm.github.com/jquery.snapscroll/
License: Other
i have the 2 js libraries loaded in the page
<script type="text/JavaScript" src="../core/dependencies/jquery.scroll_to.js"></script>
<script type="text/JavaScript" src="../core/jquery.snapscroll.js"></script>
in my js file $(".sb-shop-container").snapscroll();
and my html looks like:
<div class="sb-shop-container">
<div class="sb-shop-cols" ></div>
<div class="sb-shop-cols" ></div>
<div class="sb-shop-cols" ></div>
</div>
Hi, I'm trying to pass a callback function for the onAfter
method of scrollTo
via scrollOptions
. It works fine with the vanilla JS file but not with the minified version. After some digging I found that the normal function call for scrollTo
is as so
$(window).scrollTo($child, scroll_speed, scroll_options);
while the minified version does only
a(b).scrollTo(k,h)
and does not pass the third scroll_options
argument, so any options is ignored. I minified the JS with UglifyJS and it works perfect, outputting the expected
t(n).scrollTo(a,l,scroll_options)
best,
Thibault
Hello there,
Is there a way to make this work on different section height ?
I'm implement this on wordpress theme and it has dynamic content on every section so each section doesn't have a same height.
Is there any workaround for this ?
Thank in advance.
When I use snap scroll within safari, the first scroll received always returns to the top even if the direction is down. This includes using the down button key as well.
Cheers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.