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

Sonar Ko
Sonar Ko
11,162 Points

Help me to overcome challenge task 4 of 5.

I don't know why I have declared "@include single-transition(transform, $duration:0.6s);" but the tips tell me "Make sure you're setting duration to .6s" ? can anyone help me? thanks.

sass/style.scss
/* Write your SCSS code below. */

// Imports
@import "compass/css3";

// Variables
$experimental-support-for-svg:true;

// Page Styles

body {
  @include background(linear-gradient(  #3d69b5, #1a335e));
}
.main-logo{
 @include transform(rotate(0deg));
 @include single-transition(transform, $duration:0.6s);
}
index.html
<!DOCTYPE html>
<html>
<head>
  <title>My Compass Project</title>
  <link href="stylesheets/style.css" rel="stylesheet">
</head>
<body>
  <div class="main-logo"></div>
</body>
</html>

1 Answer

Taki mhd
PLUS
Taki mhd
Courses Plus Student 1,714 Points

I believe this is a case of a syntax error. The challenge requires the use of the shorthand transition declaration.

Try using this code instead

.main-logo {
@include single-transition(transform, 0.6s);
}

Cheers,

Sonar Ko
Sonar Ko
11,162 Points

It's work, thank you! But I don't know why my original code dosen't pass in the challenge, I try it on my computer and it's work, no any error.