Scrolling items into place when mouse scrolling


/ Published in: jQuery
Save to your folder(s)

http://www.nomination.com/js/mybonbons_min.js?v=3


Copy this code and paste it in your HTML
  1. function sposto(scroll, valoreIniziale, valoreFinale, scrollIniziale, scrollFinale, easing) {
  2. val = eval(easing)(newOffset(scrollIniziale, scroll), valoreIniziale, valoreFinale - valoreIniziale, scrollFinale - scrollIniziale);
  3. return val
  4. }
  5.  
  6. $("#scroller")
  7. .css({
  8. top: sposto(e, 390, 0, 0, 200, "easeInOutQuad") + "px",
  9. opacity: sposto(e, 100, - 10, 0, 200, "easeInOutQuad") / 100
  10. });

URL: http://www.nomination.com/mybonbons

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.