_animation.scss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. // Official animation shorthand property.
  4. @mixin animation ($animations...) {
  5. @include prefixer(animation, $animations, webkit moz spec);
  6. }
  7. // Individual Animation Properties
  8. @mixin animation-name ($names...) {
  9. @include prefixer(animation-name, $names, webkit moz spec);
  10. }
  11. @mixin animation-duration ($times...) {
  12. @include prefixer(animation-duration, $times, webkit moz spec);
  13. }
  14. @mixin animation-timing-function ($motions...) {
  15. // ease | linear | ease-in | ease-out | ease-in-out
  16. @include prefixer(animation-timing-function, $motions, webkit moz spec);
  17. }
  18. @mixin animation-iteration-count ($values...) {
  19. // infinite | <number>
  20. @include prefixer(animation-iteration-count, $values, webkit moz spec);
  21. }
  22. @mixin animation-direction ($directions...) {
  23. // normal | alternate
  24. @include prefixer(animation-direction, $directions, webkit moz spec);
  25. }
  26. @mixin animation-play-state ($states...) {
  27. // running | paused
  28. @include prefixer(animation-play-state, $states, webkit moz spec);
  29. }
  30. @mixin animation-delay ($times...) {
  31. @include prefixer(animation-delay, $times, webkit moz spec);
  32. }
  33. @mixin animation-fill-mode ($modes...) {
  34. // none | forwards | backwards | both
  35. @include prefixer(animation-fill-mode, $modes, webkit moz spec);
  36. }