Move fadein directly to component

This commit is contained in:
jeffvli
2022-11-05 12:00:46 -07:00
parent 385ec5f856
commit 07123615ca
4 changed files with 23 additions and 7 deletions
@@ -82,12 +82,14 @@ interface ImageProps {
}
const Image = styled.img<ImageProps>`
${fadeIn};
width: ${({ height }) => `${height}px`};
height: ${({ height }) => `${height}px`};
object-fit: cover;
border: 0;
border-radius: 2px;
${fadeIn}
animation: fadein 0.3s ease-in-out;
`;
const ControlsContainer = styled.div`