.overlay-warpper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, .8);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;

  & > view {
    flex: none;
  }

  &.show {
    animation: overlay-in 0.5s ease;
  }

  &.hide {
    animation: overlay-out 0.5s ease;
  }
}

@keyframes overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes overlay-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
