Created
June 1, 2017 01:14
-
-
Save KTruong008/831ddd783a51035dabe5895353bb4685 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 coolBoxKeyframes = keyframes` | |
0% { | |
height: 0px; | |
background: green; | |
} | |
100% { | |
height: 200px; | |
background: blue; | |
} | |
` | |
export const CoolBox = styled.div` | |
display: inline-block; | |
background: green; | |
width: 100px; | |
position: relative; | |
animation-name: ${coolBoxKeyframes}; | |
animation-duration: 2s; | |
animation-timing-function: ease; | |
animation-delay: 0s; | |
animation-iteration-count: 1; | |
animation-direction: normal; | |
animation-fill-mode: forwards; | |
animation-play-state: running; | |
` | |
export default CoolBox |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment