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

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.

/* Write your SCSS code below. */

// Imports
@import "compass/css3";

// Variables

// Page Styles

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

1 Answer

Taki mhd
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);


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.