Skip to content

Instantly share code, notes, and snippets.

@kikobr
Last active November 30, 2022 15:57
Show Gist options
  • Save kikobr/9621651 to your computer and use it in GitHub Desktop.
Save kikobr/9621651 to your computer and use it in GitHub Desktop.
Sass
@mixin create-anim($name) {
@-moz-keyframes #{$name} { @content; };
@-webkit-keyframes #{$name} { @content; };
@-ms-keyframes #{$name} { @content; };
@-o-keyframes #{$name} { @content; };
@keyframes #{$name} { @content; };
}
@mixin set-prefixes($prop,$val){
-moz-#{$prop}: #{$val};
-webkit-#{$prop}: #{$val};
-ms-#{$prop}: #{$val};
-o-#{$prop}: #{$val};
#{$prop}: #{$val};
}
@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