Last active
May 17, 2018 15:09
-
-
Save dgowrie/5d31868272badf0485f0a98f37287383 to your computer and use it in GitHub Desktop.
Sass @mixin for GPU-accelerated transition
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
| @mixin transition-props($property: all) { | |
| transition-property: $property; | |
| transition-duration: .5s; | |
| transition-timing-function: cubic-bezier(.25,.46,.45,.94); | |
| @if ($property != 'opacity') and ($property != 'transform') { | |
| will-change: $property; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment