This file contains hidden or 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 { keyframes } from 'styled-components'; | |
| import slideInDown from 'react-animations/lib/slide-in-down'; | |
| export default { | |
| fontFamily: 'Signika', | |
| utils: { | |
| // the duration is passed as parameter | |
| slideInDown: duration => `animation: ${duration}s ${keyframes(slideInDown)};`, | |
| }, | |
| colors: { |
This file contains hidden or 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 React from 'react'; | |
| import styled, { keyframes } from 'styled-components'; | |
| const AnimatedComponent = styled.div` | |
| animation: 1.5s ${keyframes({ from: { width: '0%' }, to: { width: '100%' } })} linear; | |
| `; | |
| const YourComponent = () => <AnimatedComponent>I am animated</AnimatedComponent>; | |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="fr"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>ice</title> | |
| </head> | |
| <body> | |
| <h1>!</h1> | |
| </body> | |
| </html> |
NewerOlder