Skip to content

Instantly share code, notes, and snippets.

@data-enhanced
Created February 25, 2013 15:44
Show Gist options
  • Save data-enhanced/5030702 to your computer and use it in GitHub Desktop.
Save data-enhanced/5030702 to your computer and use it in GitHub Desktop.
LESS mixin to handle multiple CSS transitions together
// Handling Multiple Transitions
// http://stackoverflow.com/questions/5510568/multiple-properties-are-getting-treated-as-separate-arguments-in-mixins
.bitbr-transition(@value1,@value2:X,...)
{
@value: ~`"@{arguments}".replace(/[\[\]]|\,\sX/g, '')`;
-webkit-transition: @value;
-moz-transition: @value;
-ms-transition: @value;
-o-transition: @value;
transition: @value;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment