Skip to content

Instantly share code, notes, and snippets.

@paigen11
Last active April 12, 2020 15:54
Show Gist options
  • Save paigen11/94b379f4093c63f6a073f5baecd95407 to your computer and use it in GitHub Desktop.
Save paigen11/94b379f4093c63f6a073f5baecd95407 to your computer and use it in GitHub Desktop.
Sample CSS code of React Transition Group's CSSTransition component
.sample-enter {
opacity: 0;
}
.sample-enter-active {
opacity: .5;
transition: opacity 300ms;
}
.sample-enter-done{
opacity: 1;
}
.sample-exit {
opacity: 1;
}
.sample-exit-active {
opacity: .5;
transition: opacity 300ms;
}
.sample-exit-done {
opacity: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment