Skip to content

Instantly share code, notes, and snippets.

@superfine
Created May 7, 2017 17:11
Show Gist options
  • Save superfine/a92dc5e55cd88a30a40d401798994fa0 to your computer and use it in GitHub Desktop.
Save superfine/a92dc5e55cd88a30a40d401798994fa0 to your computer and use it in GitHub Desktop.
non IE11 Plus Minus Animation
// Plus Minus Animation
// will not function in IE11 http://caniuse.com/#search=flex
// ========================================================================= */
@mixin plus-minus {
@include flexbox();
@include align-items(center);
@include justify-content(center);
&:before,
&:after {
@include transition(transform 500ms ease);
content: '';
width: 20px;
height: 2px;
position: absolute;
background-color: $darkness;
}
&:before {
@include transform(rotate(90deg));
}
&:after {
@include transform(rotate(0deg));
}
}
@mixin plus-minus-animation {
&:before {
@include transform(rotate(180deg));
}
&:after {
@include transform(rotate(180deg));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment