Skip to content

Instantly share code, notes, and snippets.

@ekoneko
Last active August 29, 2015 14:13
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 ekoneko/97545290b966137fb5a7 to your computer and use it in GitHub Desktop.
Save ekoneko/97545290b966137fb5a7 to your computer and use it in GitHub Desktop.
sass function
@mixin linear-gradient($direction, $color-stop1, $color-stop2)
background-image: linear-gradient($direction, $color-stop1, $color-stop2)
background-image: -webkit-linear-gradient($direction, $color-stop1, $color-stop2)
background-image: -moz-linear-gradient($direction, $color-stop1, $color-stop2)
background-image: -o-linear-gradient($direction, $color-stop1, $color-stop2)
@mixin keyframes($animationName)
@-webkit-keyframes #{$animationName}
@content
@-moz-keyframes #{$animationName}
@content
@-o-keyframes #{$animationName}
@content
@keyframes #{$animationName}
@content
@mixin animation($animations)
-webkit-animation: $animations
-moz-animation: $animations
-o-animation: $animations
animation: $animations
@mixin transition($transitions)
-webkit-transition: $transitions
-moz-transition: $transitions
-o-transition: $transitions
transition: $transitions
@mixin transform($transforms)
-webkit-transform: $transforms
-moz-transform: $transforms
-o-transform: $transforms
transform: $transforms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment