Posted By

kyllle on 07/25/13


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Priestd09


Scrolling items into place when mouse scrolling


 / Published in: jQuery
 

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

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

  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. });

Report this snippet  

You need to login to post a comment.