* {
  box-sizing: border-box;
}

body {
  color: white;
  font-family: sans-serif;
}

h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.container {
  position: relative;
  height: 100vh;
  overflow-x: hidden;
}

.translateAnimation {
  display: inline-block;
  text-decoration: none;
  padding: 10px 5px;
  margin: 0 10px;
  color: white;
  border-bottom: 1px solid transparent;
  transition: all 0.25s;
}
.translateAnimation:hover {
  border-bottom: 1px solid white;
  transition: all 0.25s;
}

.page {
  display: flex;
  align-items: center;
  justify-content: center;
}
.page__container {
  display: flex;
  padding: 25px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 100vh;
}
.page__link {
  display: flex;
  justify-content: space-around;
}
.page-1 {
  background: green;
}
.page-2 {
  background: orange;
}
.page-3 {
  background: purple;
}
.page--hidden {
  display: none;
  transition: all 0.5s;
}

.revealer {
  top: 0%;
  left: 0%;
  width: 100vw;
  height: 100vh;
  transform: translate3d(-150%, -50%, 0px);
  opacity: 1;
  background: black;
  position: fixed;
  z-index: 1000;
  pointer-events: none;
}
.revealer.active {
  -webkit-animation: anim-effect-3-2 1s;
          animation: anim-effect-3-2 1s;
}

@-webkit-keyframes anim-effect-3-2 {
  0% {
    transform: translate3d(0, -50%, 0);
  }
  62.5% {
    transform: translate3d(0%, 0%, 0);
    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
            animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  100% {
    transform: translate3d(0%, 100%, 0);
  }
}

@keyframes anim-effect-3-2 {
  0% {
    transform: translate3d(0, -50%, 0);
  }
  62.5% {
    transform: translate3d(0%, 0%, 0);
    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
            animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  100% {
    transform: translate3d(0%, 100%, 0);
  }
}