Is it possible to delay the opacity to zero when a certain condition is met? The loader bar is controlled using JavaScript, but can this delay be achieved using CSS alone?
const Wrap = styled.div`
background: #ddd;
width: 100px;
height: 10px;
border-radius: 3px;
opacity: ${props => (props.currentStep === props.steps ? 0 : 1)};
`;
Check out the demo (click on the add button)
https://codesandbox.io/s/7k20zw5z10
My goal is to have the progress bar load to 100%, then delay for 1 second before fading away completely.