i want to
transform: props.show ? 'translateY(0)' : 'translateY(-100vh)';
based on props.show.
if i add to my wrapper like
const Modalwrapper = styled.div`
...(some more modal styling here)...
transform: ${ props => props.show ? 'translateY(0)' : 'translateY(-100vh)'};
transition: all 0.3s ease-out;
`
It doesn't do anything when props.show changes from True to False.
Any help highly appreciated
Обсуждают сегодня