i'm looking to create an unusual scroll feature on the homepage of my website but i'm not sure of the best way to tackle it.
I will have a full screen panel (panel 1) at the top (position:absolute, height:100%) with a background feature. When the user is on this section, I want the overflow to be hidden. When the user tries to scroll (with mousewheel or arrow key), I want the page to slide down (or in this case, the panel to slide up as its positioned absolute). I'd like to use a cubic-bezier effect using CSS3. This will reveal panel 2. From here on, the overflow should be visible and should allow the user to scroll as normal. Once the user scrolls up and hits the top of panel 2, I want the overflow to return to hidden and for the top panel to slide back down.
Apologies if this is difficult to understand, i've tried to explain it in the clearest way I can think of! I've tried playing around with waypoint.js, but i'm sure if this is necessary to make this work. The illustration might help to make my point clearer.
Demo illustration
I've actually found a website that has the exact effect that i'm looking for, but I dont know how they've created it. http://mariadelaguardia.com/