Created
December 2, 2015 05:30
-
-
Save Tom-Alexander/5b8cb31b4b8c55ef30e7 to your computer and use it in GitHub Desktop.
This file contains 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
// Usage: | |
// .ReactCSSTransitionGroupMixin( | |
// {opacity: 0}, | |
// {opacity: 1}, | |
// {transition: opacity 300ms linear} | |
// ); | |
.ReactCSSTransitionGroupMixin(@disabled, @active, @transition) { | |
&-enter { | |
@disabled(); | |
&-active { | |
@active(); | |
@transition(); | |
} | |
} | |
&-leave { | |
@active(); | |
&-active { | |
@disabled(); | |
@transition(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment