Guest User

Untitled

a guest
Jun 19th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. @mixin css3-prefix($property, $value) {
  2. -webkit-#{$property}: #{$value};
  3. -khtml-#{$property}: #{$value};
  4. -moz-#{$property}: #{$value};
  5. -ms-#{$property}: #{$value};
  6. -o-#{$property}: #{$value};
  7. #{$property}: #{$value};
  8. }
  9. // Transform-Style
  10. /// @param {List} $params - Params
  11. /// @require {mixin} css3-prefix
  12.  
  13. @mixin transform-style($style: preserve-3d) {
  14. @include css3-prefix('transform-style', $style);
  15. }
  16.  
  17. /// Transition
  18. /// @param {List} $properties - Properties
  19. /// @require {mixin} css3-prefix
  20.  
  21. @mixin transition($properties...) {
  22.  
  23. @if length($properties) >= 1 {
  24. @include css3-prefix('transition', $properties);
  25. }
  26.  
  27. @else {
  28. @include css3-prefix('transition', "all 0.2s ease-in-out 0s");
  29. }
  30. }
Add Comment
Please, Sign In to add comment