_transition-property-name.scss 697 B

12345678910111213141516171819202122
  1. // Return vendor-prefixed property names if appropriate
  2. // Example: transition-property-names((transform, color, background), moz) -> -moz-transform, color, background
  3. //************************************************************************//
  4. @function transition-property-names($props, $vendor: false) {
  5. $new-props: ();
  6. @each $prop in $props {
  7. $new-props: append($new-props, transition-property-name($prop, $vendor), comma);
  8. }
  9. @return $new-props;
  10. }
  11. @function transition-property-name($prop, $vendor: false) {
  12. // put other properties that need to be prefixed here aswell
  13. @if $vendor and $prop == transform {
  14. @return unquote('-'+$vendor+'-'+$prop);
  15. }
  16. @else {
  17. @return $prop;
  18. }
  19. }