Advertisement
yetisergey

Untitled

May 26th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const ModalPoseContainer = posed.div({
  2.     enter: {
  3.         x: 0,
  4.         y: 0,
  5.         opacity: 1,
  6.         delay: 300,
  7.         transition: {
  8.             y: { type: 'spring', stiffness: 1000, damping: 15 },
  9.             default: { duration: 300 }
  10.         }
  11.     },
  12.     exit: {
  13.         x: 0,
  14.         y: 50,
  15.         opacity: 0,
  16.         transition: { duration: 150 }
  17.     }
  18. });
  19.  
  20. export const WrapperModal = styled(ModalPoseContainer)`
  21.     width: 500px;
  22.     position: absolute;
  23.     left: 0;
  24.     right: 0;
  25.     margin: auto;
  26. `
  27.  
  28. export const Modal = styled.div`
  29.     border-radius: 10px;
  30.     background: white;
  31.     div{
  32.         padding: 10px;
  33.     }
  34. `
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement