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!
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

Oğulcan Girginc
24,848 PointsThe New MacBook animation!
Does anyone have any idea how to do an animation like this?
1 Answer

Jesus Mendoza
23,287 PointsIt can be done with keyframes or jQuery (.show() / .fadeIn()) but I think they're using jQuery in this case
Oğulcan Girginc
24,848 PointsOğulcan Girginc
24,848 PointsI didn't know jQuery was this powerful. Thanks! :)
Jesus Mendoza
23,287 PointsJesus Mendoza
23,287 PointsYou can also do it with keyframes, check it out http://codepen.io/Jesusz0r/full/WbgLxK/
I'm not an expert in animations, so, I don't know if how I did it is ok!
Oğulcan Girginc
24,848 PointsOğulcan Girginc
24,848 PointsIt's nice but I think, it must be very difficult to do it with a picture. That MacBook opening, when scrolling down just hypnotises me! :D
Oğulcan Girginc
24,848 PointsOğulcan Girginc
24,848 PointsThey changed the animation with a picture! :/ I wish I had taken a video of it... :(
Jesus Mendoza
23,287 PointsJesus Mendoza
23,287 PointsI thought you meant the fade in effect hahaha I didn't see the mac opening
Oğulcan Girginc
24,848 PointsOğulcan Girginc
24,848 PointsIt was the most beautiful animation I have ever seen! That macbook was closed and it was opening when you were scrolling down. Don't know why they changed it with a simple picture! :/
Jesus Mendoza
23,287 PointsJesus Mendoza
23,287 PointsThey probably had troubles with cross browser support
Oğulcan Girginc
24,848 PointsOğulcan Girginc
24,848 PointsIt's back! (Youtube link) :)