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 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;


  @include single-transition(transform, .6s); 


  @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,


1 Answer

Ken Alger
Ken Alger
Treehouse Teacher


The rotate mixin syntax for Compass Transform is:

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

Hope it helps,


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!