Skip to content

Instantly share code, notes, and snippets.

@SebastianHGonzalez
Created January 23, 2019 13:25
Show Gist options
  • Select an option

  • Save SebastianHGonzalez/38673e52922c24086c1c84be3eadded1 to your computer and use it in GitHub Desktop.

Select an option

Save SebastianHGonzalez/38673e52922c24086c1c84be3eadded1 to your computer and use it in GitHub Desktop.
sass transitrions example
$pending-color: hsl(192, 69%, 50%);
$done-color: hsl(128, 69%, 50%);
@mixin transition($x...){
-webkit-transition: $x;
-moz-transition: $x;
-ms-transition: $x;
-o-transition: $x;
transition: $x;
}
.todo-item {
@include transition(background-color 300ms cubic-bezier(0, 0.88, 0.26, 0.88));
background-color: $pending-color;
&.done {
background-color: $done-color;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment