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 trialKristina Petravičiūtė
11,270 Pointsuse a transform mixin to give .main-logo a -25deg rotation on :hover.
What is wrong with my code?
.main-logo:hover {
@include transform(rotate(-25deg));
}
Bummer! Make sure you're including the correct mixin inside the .main-logo:hover rule.
1 Answer
Chris Shaw
26,676 PointsHi Kristina,
In Compass the rotate
syntax is an actual mixin which returns the entire transform property along with it so you don't need to wrap it within the transform
mixin.
.main-logo:hover {
@include rotate(-25deg);
}
http://compass-style.org/reference/compass/css3/transform/#mixin-rotate
Kristina Petravičiūtė
11,270 PointsKristina Petravičiūtė
11,270 PointsThank You! :)