Skip to content

Instantly share code, notes, and snippets.

@Tom-Alexander
Created December 2, 2015 05:30
Show Gist options
  • Save Tom-Alexander/5b8cb31b4b8c55ef30e7 to your computer and use it in GitHub Desktop.
Save Tom-Alexander/5b8cb31b4b8c55ef30e7 to your computer and use it in GitHub Desktop.
// 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