Sha256: e4aafc927c76c3d9b7695a49ae397c0cb8520bc73873a4a2883a71c0495587f3

Contents?: true

Size: 1.42 KB

Versions: 7

Compression:

Stored size: 1.42 KB

Contents

// Shorthand mixin. Supports multiple parentheses-deliminated values for each variable.
// Example: @include transition (all, 2.0s, ease-in-out);
//          @include transition ((opacity, width), (1.0s, 2.0s), ease-in, (0, 2s));
//          @include transition ($property:(opacity, width), $delay: (1.5s, 2.5s));

@mixin transition ($properties...) {
  @if length($properties) >= 1 {
    @include prefixer(transition, $properties, webkit moz ms o spec);
  }

  @else {
    $properties: all 0.15s ease-out 0;
    @include prefixer(transition, $properties, webkit moz ms o spec);
  }
}

@mixin transition-property ($properties...) {
   -webkit-transition-property: transition-property-names($properties, 'webkit');
      -moz-transition-property: transition-property-names($properties, 'moz');
       -ms-transition-property: transition-property-names($properties, 'ms');
        -o-transition-property: transition-property-names($properties, 'o');
           transition-property: transition-property-names($properties, false);
}

@mixin transition-duration ($times...) {
  @include prefixer(transition-duration, $times, webkit moz ms o spec);
}

@mixin transition-timing-function ($motions...) {
// ease | linear | ease-in | ease-out | ease-in-out | cubic-bezier()
  @include prefixer(transition-timing-function, $motions, webkit moz ms o spec);
}

@mixin transition-delay ($times...) {
  @include prefixer(transition-delay, $times, webkit moz ms o spec);
}

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
bourbon-compass-3.1.1 stylesheets/bourbon/css3/_transition.scss
bourbon-3.1.1 app/assets/stylesheets/css3/_transition.scss
bourbon-compass-3.1.0 stylesheets/bourbon/css3/_transition.scss
bourbon-3.1.0 app/assets/stylesheets/css3/_transition.scss
bourbon-compass-3.0.1 stylesheets/bourbon/css3/_transition.scss
bourbon-3.0.1 app/assets/stylesheets/css3/_transition.scss
bourbon-3.0.0 app/assets/stylesheets/css3/_transition.scss