Last active
July 24, 2018 02:33
-
-
Save pavelvlasov/574daa992d85afb2e80edfc4dcc6ab3b to your computer and use it in GitHub Desktop.
Sprite container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Container = styled.div` | |
width: ${({ width }) => width}px; | |
height: ${({ height }) => height}px; | |
overflow: hidden; | |
transform: scale(${({ scale }) => `${scale}, ${scale}`}); | |
transform-origin: top left; | |
`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment