background preloader

Animate on scroll

Facebook Twitter

Stellar.js. bLrQW/3/embedded/result/ Is it possible to do a "snap-to" effect while scrolling. Edit this Fiddle. Edit this Fiddle. Css - Horizontal scroll in DIV with many small DIV's inside (no text) Jquery - Make an element visible only when scrolled down to ***px. Intriguing animate-on-scroll effect – jQuery tutorial | PeHaa Blog. I suppose that I was not the only one to become speechless in front of the Nizo for iPhone website. In this tutorial we try to recreate the intriguing scrolling effect.

We’ll go for simplicity : 5 objects to animate and linear movement, no easing. The basis that opens the door for further elaboration. Click here to see the demo. We’ll start with the html structure : The document is composed of 4 elements header, #separation, section and footer, contained within two divs : #wrap_out and #wrap. Right now, the important point is to set width : 100% and overflow-x: hidden for the #wrap_out. The idea is to encourage the visitor to scroll down by positioning the #separation element at the bottom of the page. To animate the .element we’ll go simple and use a linear function to move it from its initial position to its target position. What happens when we scroll ? Move is a function of the scroll value and has two parameters : initial (p0) and final (p1) position of an element.