_keyframes.scss (1159B)
1 // Adds keyframes blocks for supported prefixes, removing redundant prefixes in the block's content 2 @mixin keyframes($name) { 3 $original-prefix-for-webkit: $prefix-for-webkit; 4 $original-prefix-for-mozilla: $prefix-for-mozilla; 5 $original-prefix-for-microsoft: $prefix-for-microsoft; 6 $original-prefix-for-opera: $prefix-for-opera; 7 $original-prefix-for-spec: $prefix-for-spec; 8 9 @if $original-prefix-for-webkit { 10 @include disable-prefix-for-all(); 11 $prefix-for-webkit: true !global; 12 @-webkit-keyframes #{$name} { 13 @content; 14 } 15 } 16 17 @if $original-prefix-for-mozilla { 18 @include disable-prefix-for-all(); 19 $prefix-for-mozilla: true !global; 20 @-moz-keyframes #{$name} { 21 @content; 22 } 23 } 24 25 $prefix-for-webkit: $original-prefix-for-webkit !global; 26 $prefix-for-mozilla: $original-prefix-for-mozilla !global; 27 $prefix-for-microsoft: $original-prefix-for-microsoft !global; 28 $prefix-for-opera: $original-prefix-for-opera !global; 29 $prefix-for-spec: $original-prefix-for-spec !global; 30 31 @if $original-prefix-for-spec { 32 @keyframes #{$name} { 33 @content; 34 } 35 } 36 }