Last active
November 30, 2022 15:57
-
-
Save kikobr/9621651 to your computer and use it in GitHub Desktop.
Sass
This file contains 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
@mixin create-anim($name) { | |
@-moz-keyframes #{$name} { @content; }; | |
@-webkit-keyframes #{$name} { @content; }; | |
@-ms-keyframes #{$name} { @content; }; | |
@-o-keyframes #{$name} { @content; }; | |
@keyframes #{$name} { @content; }; | |
} |
This file contains 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
@mixin set-prefixes($prop,$val){ | |
-moz-#{$prop}: #{$val}; | |
-webkit-#{$prop}: #{$val}; | |
-ms-#{$prop}: #{$val}; | |
-o-#{$prop}: #{$val}; | |
#{$prop}: #{$val}; | |
} |
This file contains 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
@include create-anim(dash_width) { | |
from { width: $bt-width; } | |
to { width: 0; } | |
}; | |
@include set-prefixes(transition, all 250ms); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment