Created
May 7, 2017 17:11
-
-
Save superfine/a92dc5e55cd88a30a40d401798994fa0 to your computer and use it in GitHub Desktop.
non IE11 Plus Minus Animation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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