Skip to content

Instantly share code, notes, and snippets.

Last active Jul 24, 2018
What would you like to do?
Sprite container
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