Created
October 1, 2017 15:57
-
-
Save weartstudio/fd65054c550b2a8b00f58b52ed641d76 to your computer and use it in GitHub Desktop.
CSS3, SASS: Nice transition for links
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
//the mixin | |
@mixin transition(){ | |
-o-transition: all 0.15s ease-in-out; | |
-webkit-transition: all 0.15s ease-in-out; | |
-moz-transition: all 0.15s ease-in-out; | |
transition: all 0.15s ease-in-out; | |
} | |
//the usage | |
a{ | |
@include transition(); | |
&:hover{ @include transition(); } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment