Skip to content

Commit

Permalink
Add support for the deprecated animation-basic mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil LaPier committed Jan 13, 2012
1 parent a6d3a32 commit e6dcbf5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions app/assets/stylesheets/css3/_animation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,27 @@

// Deprecated
@mixin animation-basic ($name, $time: 0, $motion: ease) {
$length-of-name: length($name);
$length-of-time: length($time);
$length-of-motion: length($motion);

@if $length-of-name > 1 {
@include animation-name(zip($name));
} @else {
@include animation-name( $name);
}

@if $length-of-time > 1 {
@include animation-duration(zip($time));
} @else {
@include animation-duration( $time);
}

@if $length-of-motion > 1 {
@include animation-timing-function(zip($motion));
} @else {
@include animation-timing-function( $motion);
}
@warn "The animation-basic mixin is deprecated. Use the animation mixin instead.";
}

0 comments on commit e6dcbf5

Please sign in to comment.