Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS CSS Transitions and Transforms Getting Started with CSS Transforms Changing the Transform Position with transform-origin

Gari Merrifield
Gari Merrifield
9,559 Points

Why is the light grey background color commented out?

At about 45 seconds into the video, Guil mentions that he has added a "lightgrey" background color to demonstrate the original position of the images. However, in both the Workspace and the Project Files, that part is actually commented out. So, if you don't go into the main.css file and remove the commenting, the effect that Guil demonstrates doesn't happen.

Was this just a glitch along the way and needs to be fixed in the CSS?

1 Answer

Balazs Peak
Balazs Peak
46,090 Points

I think it is not intended to be in the production level design, but it is only for demonstration purposes. So it is commented out, and if you want to check how the transition works, you will know where to put it - or just delete the commenting, and you can experiment with it.

Gari Merrifield
Gari Merrifield
9,559 Points

Well, that it is not intended to be in the end result would make sense, but what Workspaces start "solved" or "final" when you first load them? In my experience, that would be none.