Created
May 31, 2019 15:07
-
-
Save timothyde/d220bb5e073e583d71096e4568add178 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
const PosedCover = posed(Cover)({ | |
open: { | |
rotateX: '0deg', | |
opacity: 1, | |
transition: { | |
type: 'spring', | |
mass: 0.5 | |
}, | |
delay: 150 | |
}, | |
closed: { | |
rotateX: '-180deg', | |
opacity: 0, | |
transition: { | |
type: 'tween', | |
duration: 150 | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment