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 trialTodd Squitieri
8,001 PointsUsing the Proper Mixin: And this is wrong because... ?
I'm stuck on a compass-related challenge. I keep getting an error message that says to make sure that the mixin is in the proper place. The instruction for this particular challenge is as follows:
"Finally, use a transform mixin to give .main-logo a -25deg rotation on :hover."
Here is my code:
body {
$experimental-support-for-svg: true;
@include background(linear-gradient(#3d69b5, #1a335e));
}
$default-transition-duration: .6s;
$default-transition-function: ease-out;
$default-transition-delay: 1s;
.main-logo{
@include single-transition(transform, .6s);
}
.main-logo:hover{
@include transform(rotate(-25deg));
}
the transform mixin is in the main-logo hover tag. It says -25 degree rotation. So what gives???
Any help is much appreciated.
Thanks so much,
T
1 Answer
Ken Alger
Treehouse TeacherTodd;
The rotate
mixin syntax for Compass Transform is:
.main-logo:hover {
@include rotate(-25deg);
}
Hope it helps,
Ken
Todd Squitieri
8,001 PointsTodd Squitieri
8,001 PointsHelps a lot! Thank you so much, Ken, for all of your patience in helping me!
Appreciate it!
Sincerely,
Todd