Created
April 17, 2015 13:35
-
-
Save StfBauer/3fa9c2c01f5e2d482627 to your computer and use it in GitHub Desktop.
This file contains hidden or 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($transition-property, $transition-time, $method, $delay: 0s) { | |
-webkit-transition: $transition-property $transition-time $method $delay; | |
-moz-transition: $transition-property $transition-time $method $delay; | |
-ms-transition: $transition-property $transition-time $method $delay; | |
-o-transition: $transition-property $transition-time $method $delay; | |
transition: $transition-property $transition-time $method $delay; | |
} | |
$c-red: red; | |
$c-blue: blue; | |
$c-red-light: lighten($c-blue, 20%); | |
.box{ | |
width: 200px; | |
height: 200px; | |
background-color: $c-red; | |
@include transition(background-color, 0.5s, ease-in-out); | |
&:hover{ | |
background-color: $c-red-light; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment