Skip to content

Instantly share code, notes, and snippets.

@robert-moore
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robert-moore/5927cd17c11310ef2943 to your computer and use it in GitHub Desktop.
Save robert-moore/5927cd17c11310ef2943 to your computer and use it in GitHub Desktop.
Mixin for SASS Transition
@mixin transition($args...) {
-webkit-transition: $args;
-moz-transition: $args;
-ms-transition: $args;
-o-transition: $args;
transition: $args;
}
a {
color: gray;
@include transition(color .3s ease);
&:hover {
color: black;
}
}
/* from http://zerosixthree.se/8-sass-mixins-you-must-have-in-your-toolbox/ */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment