Created
June 1, 2017 00:58
-
-
Save KTruong008/ba2867dfb0fd9e056978a86f8c5afda7 to your computer and use it in GitHub Desktop.
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
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