Help with 2.What is a Mixin?


help please!
I'm stuck in the 2. What is a Mixin?

I tried to check my code many times and I still can't figure out what's the problem with it. Can you please check my code and tell me what's wrong?

my scss code:

@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 {
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
-o-backface-visibility: hidden;

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

.definition {
  width: 100%;
  height: 100%;

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




Try putting :

@mixin backface-visibility { backface-visibility: hidden; -webkit-backface-visibility: hidden; -moz-backface-visibility: hidden; -ms-backface-visibility: hidden; -o-backface-visibility: hidden; }

on top of everything


It still can't...
Could you please share ur all code?


It's A BUG!!! It can't run on Safari but Chrome!
Just use Chrome! U will find the new world, good night!


thank you! using Chrome solved my problem, but it's a bug they really need to fix since I literally had to download and install the browser.


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