Giter Club home page Giter Club logo

jquery.snapscroll's People

Contributors

chrismukherjee avatar mutly avatar quadule avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery.snapscroll's Issues

this is not working can tell me if im doing something wrong

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>
           

Minified version does not pass scrollOptions to scrollTo()

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

Make it work with different section height ?

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.

First scroll always autoscrolls to the top

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.