Last active
April 12, 2020 15:54
-
-
Save paigen11/94b379f4093c63f6a073f5baecd95407 to your computer and use it in GitHub Desktop.
Sample CSS code of React Transition Group's CSSTransition component
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
.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