So, I am trying to fade in and fade out a set of inputs based on what button the user clicks. I tried using jQuery, but, the div was fading in and fading out at the same spe
A simple way to achieve this with styled components...
const Popup = styled.div` width: 200px; height: 200px; transition: opacity 0.5s; opacity: ${({ showPopup }) => (showPopup ? '1' : '0')}; `;
{...}