Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Unsubscribed User
8,167 Pointscss transitions
Hey I'm trying to bring a div/picture in from the side of the page when the user gets to a certain point in the page.
example..
you have a blank white page that has a height of 1000px. When you scroll down and get half way down the page a picture/div comes in from the left side of the page that was previous hidden.
anyone know how to accomplish this?
4 Answers
Joe Bruno
35,909 PointsJustin,
You may be able to achieve this utilizing the jQuery Plugin Waypoints:
Kevin Korte
28,149 PointsPretty sure CSS alone can not accomplish this. You're going to need some sort of Javascript/Jquery to trip the CSS animation at the right time.
See if this article doesn't help you. http://www.netmagazine.com/tutorials/getting-animations-trigger-right-time
Unsubscribed User
8,167 PointsThanks both for the quick responses...I figured I needed some JS in there
Unsubscribed User
8,167 PointsThanks again guys I did it with JS ( show/hide and scrollTop ) with some CSS3 animations attached...works like a charm!