Last active
August 29, 2015 14:08
-
-
Save robert-moore/5927cd17c11310ef2943 to your computer and use it in GitHub Desktop.
Mixin for SASS Transition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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