Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paigen11/47b831a8c2b209b09ff8cd3c67981cec to your computer and use it in GitHub Desktop.
Save paigen11/47b831a8c2b209b09ff8cd3c67981cec to your computer and use it in GitHub Desktop.
Sample CSS code of React Transition Group's TransitionGroup component
.remove-btn {
margin-right: 0.5rem;
}
.chore-enter {
opacity: 0;
}
.chore-enter-active {
opacity: 1;
transition: opacity 500ms ease-in;
}
.chore-exit {
opacity: 1;
}
.chore-exit-active {
opacity: 0;
transition: opacity 500ms ease-in;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment