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

CSS Compass Basics Getting Started with Compass Getting Started with Compass

Todd Squitieri
Todd Squitieri
8,001 Points

Using 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
STAFF
Ken Alger
Treehouse Teacher

Todd;

The rotate mixin syntax for Compass Transform is:

.main-logo:hover {
  @include rotate(-25deg);
}

Hope it helps,

Ken

Todd Squitieri
Todd Squitieri
8,001 Points

Helps a lot! Thank you so much, Ken, for all of your patience in helping me!

Appreciate it!

Sincerely,

Todd