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 trialSonar Ko
11,162 PointsHelp 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
$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);
}
<!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
Courses Plus Student 1,714 PointsI 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
11,162 PointsSonar Ko
11,162 PointsIt'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.