_animation.scss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // http://www.w3.org/TR/css3-animations/#the-animation-name-property-
  2. // Each of these mixins support comma separated lists of values, which allows different transitions for individual properties to be described in a single style rule. Each value in the list corresponds to the value at that same position in the other properties.
  3. @mixin animation($animations...) {
  4. @include prefixer(animation, $animations, webkit moz spec);
  5. }
  6. @mixin animation-name($names...) {
  7. @include prefixer(animation-name, $names, webkit moz spec);
  8. }
  9. @mixin animation-duration($times...) {
  10. @include prefixer(animation-duration, $times, webkit moz spec);
  11. }
  12. @mixin animation-timing-function($motions...) {
  13. // ease | linear | ease-in | ease-out | ease-in-out
  14. @include prefixer(animation-timing-function, $motions, webkit moz spec);
  15. }
  16. @mixin animation-iteration-count($values...) {
  17. // infinite | <number>
  18. @include prefixer(animation-iteration-count, $values, webkit moz spec);
  19. }
  20. @mixin animation-direction($directions...) {
  21. // normal | alternate
  22. @include prefixer(animation-direction, $directions, webkit moz spec);
  23. }
  24. @mixin animation-play-state($states...) {
  25. // running | paused
  26. @include prefixer(animation-play-state, $states, webkit moz spec);
  27. }
  28. @mixin animation-delay($times...) {
  29. @include prefixer(animation-delay, $times, webkit moz spec);
  30. }
  31. @mixin animation-fill-mode($modes...) {
  32. // none | forwards | backwards | both
  33. @include prefixer(animation-fill-mode, $modes, webkit moz spec);
  34. }