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

General Discussion

The New MacBook animation!

Does anyone have any idea how to do an animation like this?

1 Answer

It can be done with keyframes or jQuery (.show() / .fadeIn()) but I think they're using jQuery in this case

I didn't know jQuery was this powerful. Thanks! :)

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

It'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

They changed the animation with a picture! :/ I wish I had taken a video of it... :(

I thought you meant the fade in effect hahaha I didn't see the mac opening

It 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! :/

They probably had troubles with cross browser support

It's back! (Youtube link) :)