Skip to content

Instantly share code, notes, and snippets.

@niksudan
Created December 13, 2014 13:39
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 niksudan/e5780f52843f01384ab4 to your computer and use it in GitHub Desktop.
Save niksudan/e5780f52843f01384ab4 to your computer and use it in GitHub Desktop.
CSS animation mixin [Sass]
@mixin transition($transition-property, $transition-time: 0.3s, $method: ease-in-out) {
-webkit-transition: $transition-property $transition-time $method;
-moz-transition: $transition-property $transition-time $method;
-ms-transition: $transition-property $transition-time $method;
-o-transition: $transition-property $transition-time $method;
transition: $transition-property $transition-time $method;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment