Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save KTruong008/ba2867dfb0fd9e056978a86f8c5afda7 to your computer and use it in GitHub Desktop.
Save KTruong008/ba2867dfb0fd9e056978a86f8c5afda7 to your computer and use it in GitHub Desktop.
import styled from 'styled-components';
import Box from './Box;
export const Trigger = styled.div`
width: 200px;
height: 200px;
border: 20px solid #999;
background: #ddd;
&:hover ${Box} {
transform: translate(200px, 150px) rotate(20deg);
}
`
export default Trigger;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment