5. Mixin Facts (Error)


<Below this line, add a link to the EXACT exercise that you are stuck at.>

<In what way does your code behave incorrectly? Include ALL error messages.>
I have no idea why this doesn’t work. I tryed almost everything. Is there a bug in this lesson mabye? Here’s a screenshoot: http://image.prntscr.com/image/443690a694af4351ae7ff688e329d91b.png
I keep getting that error: "Did you include the transition mixin with a total of 0.4s in main.scss?"


@mixin stripes($direction, $width-percent, $stripe-color, $stripe-background: #FFF) {
background: repeating-linear-gradient(
$stripe-background ($width-percent - 1),
$stripe-color 1%,
$stripe-background $width-percent

@mixin transform($transformation) {
transform: $transformation;
-webkit-transform: $transformation;
-moz-transform: $transformation;
-ms-transform: $transformation;
-o-transform: $transformation;

@mixin photo-content {
object-fit: cover;

//Add your own mixins here
@mixin backface-visibility($visibility:hidden) {
backface-visibility: $visibility;
-webkit-backface-visibility: $visibility;
-moz-backface-visibility: $visibility;
-ms-backface-visibility: $visibility;
-o-backface-visibility: $visibility;

@mixin transform-style($style){
transform-style: $style;
-moz-transform-style: $style;
-o-transform-style: $style;
-ms-transform-style: $style;
-webkit-transform-style: $style;

@mixin transition($time){
transition: $time;
-webkit-transition: $time;
-moz-transition: $time;
-o-transition: $time;

.notecard {
width: 300px;
height: 180px;
border: 1px solid black;
display: inline-block;
margin: 20px;
font-family: Roboto, sans-serif;
box-shadow: 1px 1px 2px 2px rgba(0,0,0,.2);
@include transform-style(preserve-3d);
@include transition(0.4s);

@include transform (rotatey(-180deg));

.front, .back {
width: 100%;
height: 100%;
position: absolute;
@include backface-visibility;

.front {
z-index: 3;
font-size: 20px;

.word {
  display: block;
  text-align: center;
  position: relative;
  top: 40%;


.back {
z-index: 1;
word-wrap: break-word;
line-height: 1.6;
@include transform(rotatey(-180deg));

.definition {
  width: 100%;
  height: 100%;
  .photo {
    width: 60%;
    margin: 0px auto;


<do not remove the three backticks above>

I believe this is an error, and I reported it as such. I’ve been getting the same message, even after restarting the lesson and copy-pasting the snippets from the instructions verbatim it still doesn’t allow me to run.

So, I finally gave in and asked to have the code generated for me, and it did work. The only problem it, I don’t see any real difference between my code, your code, and the “correct” code. Maybe there’s something that I’m missing, because I can’t really spot the difference.

Same here… I did the same as you… Compared that code, with “generated” one. But I still belive that there is a chance that I’m missing something. :slight_smile:

I have the same error (“Did you include the transition mixin with a total of 0.4s in main.scss?”) and have reported it as an bug in the lesson.

How do you get it to generate code for you? I would really like to continue on with the lesson.

(edit to add: Apparently I just need to hit RUN enough times for the system to realize I’m totally stuck. It’s a shame I didn’t think to copy my code and it was overwritten. Other than the order of my @mixins, I don’t know what the difference was. I will know for next time. Anywho, moving on!)

I had the same issue, I fixed it by putting the: @include transition(0.4); outside the .notepad and before .front , .back { propertie I quess its a big that should be fixed.!!! @zigapovhe

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.