Skip to content

Instantly share code, notes, and snippets.

@gayanvirajith
Created July 9, 2014 10:19
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 gayanvirajith/2ec505c43551cb448f57 to your computer and use it in GitHub Desktop.
Save gayanvirajith/2ec505c43551cb448f57 to your computer and use it in GitHub Desktop.
Sass transition mixin
@mixin transition($args...) {
-webkit-transition: $args;
-moz-transition: $args;
-ms-transition: $args;
-o-transition: $args;
transition: $args;
}
@gayanvirajith
Copy link
Author

Usage

.some-class {
...
@include transition(all .2s);

}

@gayanvirajith
Copy link
Author

Usage

a {
color: #000;
@include transition(all .3s ease-in-out);
&:hover, &:focus, &:active {
color: #666;
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment