Skip to content

Instantly share code, notes, and snippets.

@timothyde
Created May 31, 2019 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timothyde/d220bb5e073e583d71096e4568add178 to your computer and use it in GitHub Desktop.
Save timothyde/d220bb5e073e583d71096e4568add178 to your computer and use it in GitHub Desktop.
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