-
-
Save d-ivashchuk/1d3d996afbded51161c28814c89126d0 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, { keyframes } from 'styled-components' | |
const rotate = keyframes` | |
from { | |
transform: rotate(0deg); | |
} | |
to { | |
transform: rotate(360deg); | |
} | |
`; | |
const StyledLogo = styled(ReactLogo)` | |
animation: ${rotate} infinite 20s linear; | |
height:25rem; | |
width:25rem; | |
display:block; | |
margin:auto; | |
` | |
class App extends Component { | |
render() { | |
return ( | |
<StyledLogo /> | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment