Created
January 23, 2019 13:25
-
-
Save SebastianHGonzalez/38673e52922c24086c1c84be3eadded1 to your computer and use it in GitHub Desktop.
sass transitrions example
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
| $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