Created
March 14, 2018 23:03
-
-
Save pedronauck/d39912a978994cee0827b34aed33fc3a 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 React from 'react' | |
import pose from 'react-pose' | |
const AnimatedDiv = pose('div')({ | |
opened: { scale: 1 }, | |
closed: { scale: 2 }, | |
}) | |
export const MyComponent = ({ opened }) => ( | |
<AnimatedDiv state="opened"> | |
hello world | |
</AnimatedDiv> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment