Utilizing React's CSS animations add-on has been a seamless process, with everything running smoothly when using the provided classnames.
.quote-enter {
opacity: 0.01;
transition: opacity .25s ease-in;
}
.quote-enter.quote-enter-active {
opacity: 1;
}
.quote-leave {
opacity: 1;
transition: opacity .25s ease-in;
}
.quote-leave.quote-leave-active {
opacity: 0.01;
}
However, I encountered an issue when attempting to convert this into an attribute selector method to target each instance of the component for animation - it seems that no selectors match.
[class$='-enter'] {
opacity: 0.01;
transition: opacity .25s ease-in;
}
[class$='-enter'][class$='-enter-active'] {
opacity: 1;
}
[class$='-leave'] {
opacity: 1;
transition: opacity .25s ease-in;
}
[class$='-leave'][class$='-leave-active'] {
opacity: 0.01;
}