Reputation: 105
My question has been partly answered in this thread - Show Div when scroll position, but I would like to know:
1)How to show and hide the Div based on scrolling up or down. A specific example is this website which shows/hids the Div based on scrolling up or down and also has them fade in from the left or right - http://bit.ly/1lOZXRY.
2) How do you achieve the effect of automatically scrolling down the website like a story is being told when you click "Click here to read the story..."?
Thanks you :)
Upvotes: 0
Views: 916
Reputation: 4114
There is a Jquery plugin doing what you want Scrollmagic
One example do exactly what you wanted anchor link To change the scroll duration just change the tweenmax
TweenMax.to(window, 2.5, {scrollTo: {y: $elem.offset().top}}); //line 79
Upvotes: 1