myheats-website

Website for myheats
git clone https://git.in0rdr.ch/myheats-website.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

_transition-property-name.scss (712B)


      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 
      7   @each $prop in $props {
      8     $new-props: append($new-props, transition-property-name($prop, $vendor), comma);
      9   }
     10 
     11   @return $new-props;
     12 }
     13 
     14 @function transition-property-name($prop, $vendor: false) {
     15   // put other properties that need to be prefixed here aswell
     16   @if $vendor and $prop == transform {
     17     @return unquote('-'+$vendor+'-'+$prop);
     18   }
     19   @else {
     20     @return $prop;
     21   }
     22 }