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 trialRachman Walker
12,517 PointsQuestion about transition-property
At 8:49 into Transitions - Part 2, the following line is added: transition-property (margin, background) Why 'margin' and not 'margin-left', as it is listed in .wrap:hover .box{...}?
Just curious.
1 Answer
Jacob Miller
12,466 PointsWorks the same either way. The margin
property includes margin-left
, so specifying the transition on margin
will affect the margin-left
set on .wrap:hover
.