LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

CSS
@import url("https://fonts.googleapis.com/css?family=Space+Mono:400,700i");
body {
  font-family: 'Space Mono', monospace;
  background-color: #212121;
}

.wrap {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}

.title-main {
  color: gold;
  padding: 0 1rem;
  text-align: center;
  font-weight: 700;
  font-style: italic;
}

.boxes {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 1rem 0 1rem 1rem;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.box {
  position: relative;
  height: calc(16.66vw - 2rem);
  -webkit-box-flex: 0;
      -ms-flex: 0 0 calc(16.66% - 1rem);
          flex: 0 0 calc(16.66% - 1rem);
  margin: 0 1rem 1rem 0;
  -webkit-perspective: 1200px;
          perspective: 1200px;
  overflow: hidden;
}
@media (max-width: 1000px) {
  .box {
    height: calc(25vw - 2rem);
    -webkit-box-flex: 0;
        -ms-flex: 0 0 calc(25% - 1rem);
            flex: 0 0 calc(25% - 1rem);
  }
}
@media (max-width: 700px) {
  .box {
    height: calc(50vw - 2rem);
    -webkit-box-flex: 0;
        -ms-flex: 0 0 calc(50% - 1rem);
            flex: 0 0 calc(50% - 1rem);
  }
}
.box:hover {
  overflow: inherit;
}

.anim {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background: gold;
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
}

.title,
.easing {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 1.25rem;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  font-size: 1rem;
}

.easing {
  color: gold;
}
.box:hover .easing {
  opacity: 0;
}

.title {
  font-size: .8rem;
  -webkit-transition: 300ms opacity linear, 300ms -webkit-transform cubic-bezier(0.62, 0.02, 0.34, 1);
  transition: 300ms opacity linear, 300ms -webkit-transform cubic-bezier(0.62, 0.02, 0.34, 1);
  transition: 300ms transform cubic-bezier(0.62, 0.02, 0.34, 1), 300ms opacity linear;
  transition: 300ms transform cubic-bezier(0.62, 0.02, 0.34, 1), 300ms opacity linear, 300ms -webkit-transform cubic-bezier(0.62, 0.02, 0.34, 1);
  -webkit-transition-delay: 650ms, 200ms;
          transition-delay: 650ms, 200ms;
  -webkit-transform: translate(-55%, -50%);
          transform: translate(-55%, -50%);
  opacity: 0;
}
.box:hover .title {
  opacity: 1;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  -webkit-transition: 300ms opacity linear, 300ms -webkit-transform cubic-bezier(0.62, 0.02, 0.34, 1);
  transition: 300ms opacity linear, 300ms -webkit-transform cubic-bezier(0.62, 0.02, 0.34, 1);
  transition: 300ms transform cubic-bezier(0.62, 0.02, 0.34, 1), 300ms opacity linear;
  transition: 300ms transform cubic-bezier(0.62, 0.02, 0.34, 1), 300ms opacity linear, 300ms -webkit-transform cubic-bezier(0.62, 0.02, 0.34, 1);
  -webkit-transition-delay: 250ms;
          transition-delay: 250ms;
}

.scale-y {
  -webkit-transition: 650ms -webkit-transform cubic-bezier(0.7, 0.3, 0, 1);
  transition: 650ms -webkit-transform cubic-bezier(0.7, 0.3, 0, 1);
  transition: 650ms transform cubic-bezier(0.7, 0.3, 0, 1);
  transition: 650ms transform cubic-bezier(0.7, 0.3, 0, 1), 650ms -webkit-transform cubic-bezier(0.7, 0.3, 0, 1);
  -webkit-transform: scaleY(0);
          transform: scaleY(0);
  will-change: transform;
}
.box:hover .scale-y {
  -webkit-transform: scaleY(1);
          transform: scaleY(1);
}

.scale-x {
  -webkit-transition: 650ms -webkit-transform cubic-bezier(0.7, 0.3, 0, 1);
  transition: 650ms -webkit-transform cubic-bezier(0.7, 0.3, 0, 1);
  transition: 650ms transform cubic-bezier(0.7, 0.3, 0, 1);
  transition: 650ms transform cubic-bezier(0.7, 0.3, 0, 1), 650ms -webkit-transform cubic-bezier(0.7, 0.3, 0, 1);
  -webkit-transform: scaleX(0);
          transform: scaleX(0);
  will-change: transform;
}
.box:hover .scale-x {
  -webkit-transform: scaleX(1);
          transform: scaleX(1);
}

.translate {
  opacity: 0;
  -webkit-transition: 400ms opacity ease-out, 390ms -webkit-transform cubic-bezier(0.52, 0.01, 0.16, 1);
  transition: 400ms opacity ease-out, 390ms -webkit-transform cubic-bezier(0.52, 0.01, 0.16, 1);
  transition: 390ms transform cubic-bezier(0.52, 0.01, 0.16, 1), 400ms opacity ease-out;
  transition: 390ms transform cubic-bezier(0.52, 0.01, 0.16, 1), 400ms opacity ease-out, 390ms -webkit-transform cubic-bezier(0.52, 0.01, 0.16, 1);
  -webkit-transform: translate(0, -150%);
          transform: translate(0, -150%);
  will-change: opacity, transform;
}
.box:hover .translate {
  opacity: 1;
  -webkit-transform: translate(0, 0);
          transform: translate(0, 0);
}

.opacity {
  opacity: 0;
  -webkit-transition: 400ms opacity cubic-bezier(0, 0, 0.3, 1);
  transition: 400ms opacity cubic-bezier(0, 0, 0.3, 1);
  will-change: opacity;
}
.box:hover .opacity {
  opacity: 1;
}

.open-x {
  -webkit-transition: 720ms -webkit-transform cubic-bezier(0.52, 0.01, 0.16, 1);
  transition: 720ms -webkit-transform cubic-bezier(0.52, 0.01, 0.16, 1);
  transition: 720ms transform cubic-bezier(0.52, 0.01, 0.16, 1);
  transition: 720ms transform cubic-bezier(0.52, 0.01, 0.16, 1), 720ms -webkit-transform cubic-bezier(0.52, 0.01, 0.16, 1);
  -webkit-transform: scaleX(0);
          transform: scaleX(0);
  -webkit-transform-origin: 0 50%;
          transform-origin: 0 50%;
  will-change: transform;
}
.box:hover .open-x {
  -webkit-transform: scaleX(1);
          transform: scaleX(1);
}

.open-x-rev {
  -webkit-transition: 550ms -webkit-transform cubic-bezier(0.7, 0.3, 0, 1);
  transition: 550ms -webkit-transform cubic-bezier(0.7, 0.3, 0, 1);
  transition: 550ms transform cubic-bezier(0.7, 0.3, 0, 1);
  transition: 550ms transform cubic-bezier(0.7, 0.3, 0, 1), 550ms -webkit-transform cubic-bezier(0.7, 0.3, 0, 1);
  -webkit-transform: scaleX(0);
          transform: scaleX(0);
  -webkit-transform-origin: 100% 50%;
          transform-origin: 100% 50%;
  will-change: transform;
}
.box:hover .open-x-rev {
  -webkit-transform: scaleX(1);
          transform: scaleX(1);
}

.zoom {
  -webkit-transition: 640ms cubic-bezier(0.7, 0.3, 0, 1.25);
  transition: 640ms cubic-bezier(0.7, 0.3, 0, 1.25);
  -webkit-transform: scale(0);
          transform: scale(0);
  will-change: transform;
}
.box:hover .zoom {
  -webkit-transform: scale(1);
          transform: scale(1);
}

.spin {
  -webkit-transition: 500ms opacity linear 140ms, 640ms -webkit-transform cubic-bezier(0.7, 0.3, 0.25, 1.15);
  transition: 500ms opacity linear 140ms, 640ms -webkit-transform cubic-bezier(0.7, 0.3, 0.25, 1.15);
  transition: 640ms transform cubic-bezier(0.7, 0.3, 0.25, 1.15), 500ms opacity linear 140ms;
  transition: 640ms transform cubic-bezier(0.7, 0.3, 0.25, 1.15), 500ms opacity linear 140ms, 640ms -webkit-transform cubic-bezier(0.7, 0.3, 0.25, 1.15);
  -webkit-transform: rotate(180deg) scale(0.8);
          transform: rotate(180deg) scale(0.8);
  opacity: 0;
  will-change: opacity, transform;
}
.box:hover .spin {
  -webkit-transform: rotate(0deg) scale(1);
          transform: rotate(0deg) scale(1);
  opacity: 1;
}

.pillow-land {
  -webkit-transition: 200ms opacity linear, 340ms -webkit-transform linear 200ms;
  transition: 200ms opacity linear, 340ms -webkit-transform linear 200ms;
  transition: 340ms transform linear 200ms, 200ms opacity linear;
  transition: 340ms transform linear 200ms, 200ms opacity linear, 340ms -webkit-transform linear 200ms;
  -webkit-transform: scale(1.25);
          transform: scale(1.25);
  opacity: 0;
  will-change: opacity, transform;
}
.box:hover .pillow-land {
  -webkit-transform: scale(1);
          transform: scale(1);
  opacity: 1;
  -webkit-transition: 400ms opacity linear 150ms, 540ms -webkit-transform cubic-bezier(0.85, 0, 0.55, 1.7);
  transition: 400ms opacity linear 150ms, 540ms -webkit-transform cubic-bezier(0.85, 0, 0.55, 1.7);
  transition: 540ms transform cubic-bezier(0.85, 0, 0.55, 1.7), 400ms opacity linear 150ms;
  transition: 540ms transform cubic-bezier(0.85, 0, 0.55, 1.7), 400ms opacity linear 150ms, 540ms -webkit-transform cubic-bezier(0.85, 0, 0.55, 1.7);
}

.dot {
  opacity: 0;
  -webkit-clip-path: circle(10% at 50% 50%);
          clip-path: circle(10% at 50% 50%);
  transition: 340ms clip-path 200ms, 340ms -webkit-clip-path 200ms, 200ms opacity linear;
  will-change: clip-path, -webkit-clip-path, opacity;
}
.box:hover .dot {
  opacity: 1;
  -webkit-clip-path: circle(75% at 50% 50%);
          clip-path: circle(75% at 50% 50%);
  transition: 555ms clip-path cubic-bezier(0.5, 0, 0.15, 1), 555ms -webkit-clip-path cubic-bezier(0.5, 0, 0.15, 1), 100ms opacity linear 100ms;
}

.swipe-x {
  opacity: 0;
  -webkit-clip-path: inset(0 0 0 0);
          clip-path: inset(0 0 0 0);
  -webkit-transform: translate3d(-100%, 0, 0);
          transform: translate3d(-100%, 0, 0);
  transition: 340ms clip-path 200ms, 340ms -webkit-clip-path 200ms, 200ms opacity linear;
  will-change: clip-path, -webkit-clip-path, opacity, transform;
}
.box:hover .swipe-x {
  opacity: 1;
  -webkit-clip-path: inset(0 0 0 100%);
          clip-path: inset(0 0 0 100%);
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
  transition: 666ms clip-path cubic-bezier(0.5, 0, 0.2, 1), 666ms -webkit-clip-path cubic-bezier(0.5, 0, 0.2, 1), 100ms opacity linear 100ms, 666ms transform cubic-bezier(0.7, 0.3, 0, 1);
}

.swipe-y {
  opacity: 0;
  -webkit-clip-path: inset(0 0 0 0);
          clip-path: inset(0 0 0 0);
  -webkit-transform: translate3d(0, -100%, 0);
          transform: translate3d(0, -100%, 0);
  transition: 340ms clip-path 200ms, 340ms -webkit-clip-path 200ms, 200ms opacity linear;
  will-change: clip-path, -webkit-clip-path, opacity, transform;
}
.box:hover .swipe-y {
  opacity: 1;
  -webkit-clip-path: inset(100% 0 0 0);
          clip-path: inset(100% 0 0 0);
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
  transition: 666ms clip-path cubic-bezier(0.5, 0, 0.2, 1), 666ms -webkit-clip-path cubic-bezier(0.5, 0, 0.2, 1), 100ms opacity linear 100ms, 666ms transform cubic-bezier(0.7, 0.3, 0, 1);
}

.fold-down {
  opacity: 0;
  -webkit-transform: translate3d(0, 0, 20rem) rotateX(80deg) skewY(10deg);
          transform: translate3d(0, 0, 20rem) rotateX(80deg) skewY(10deg);
  -webkit-transition: 200ms opacity linear, 0ms -webkit-transform 200ms;
  transition: 200ms opacity linear, 0ms -webkit-transform 200ms;
  transition: 200ms opacity linear, 0ms transform 200ms;
  transition: 200ms opacity linear, 0ms transform 200ms, 0ms -webkit-transform 200ms;
  -webkit-transform-origin: 50% 0;
          transform-origin: 50% 0;
  will-change: opacity, transform;
}
.box:hover .fold-down {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0) rotateX(0deg);
          transform: translate3d(0, 0, 0) rotateX(0deg);
  -webkit-transition: 100ms opacity linear 150ms, 666ms -webkit-transform cubic-bezier(0.8, 0.3, 0.25, 1.66);
  transition: 100ms opacity linear 150ms, 666ms -webkit-transform cubic-bezier(0.8, 0.3, 0.25, 1.66);
  transition: 100ms opacity linear 150ms, 666ms transform cubic-bezier(0.8, 0.3, 0.25, 1.66);
  transition: 100ms opacity linear 150ms, 666ms transform cubic-bezier(0.8, 0.3, 0.25, 1.66), 666ms -webkit-transform cubic-bezier(0.8, 0.3, 0.25, 1.66);
}

.jump-in {
  opacity: 0;
  -webkit-transform: translate3d(0, 150%, -10rem);
          transform: translate3d(0, 150%, -10rem);
  -webkit-transition: 200ms opacity linear, 0ms -webkit-transform 200ms;
  transition: 200ms opacity linear, 0ms -webkit-transform 200ms;
  transition: 200ms opacity linear, 0ms transform 200ms;
  transition: 200ms opacity linear, 0ms transform 200ms, 0ms -webkit-transform 200ms;
  will-change: opacity, transform;
  -webkit-transform-origin: 50% 0;
          transform-origin: 50% 0;
}
.box:hover .jump-in {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
  -webkit-transition: 200ms opacity linear 166ms, 666ms -webkit-transform cubic-bezier(0.8, 0.3, 0.25, 1.75);
  transition: 200ms opacity linear 166ms, 666ms -webkit-transform cubic-bezier(0.8, 0.3, 0.25, 1.75);
  transition: 200ms opacity linear 166ms, 666ms transform cubic-bezier(0.8, 0.3, 0.25, 1.75);
  transition: 200ms opacity linear 166ms, 666ms transform cubic-bezier(0.8, 0.3, 0.25, 1.75), 666ms -webkit-transform cubic-bezier(0.8, 0.3, 0.25, 1.75);
}

.ninja-cut {
  opacity: 0;
  -webkit-clip-path: polygon(0 0, 1% 0, 100% 100%, 99% 100%);
          clip-path: polygon(0 0, 1% 0, 100% 100%, 99% 100%);
  -webkit-transform: scale(0);
          transform: scale(0);
  -webkit-transform-origin: 0% 0%;
          transform-origin: 0% 0%;
  transition: 340ms clip-path 200ms, 340ms -webkit-clip-path 200ms, 200ms opacity linear;
  will-change: clip-path, -webkit-clip-path, opacity, transform;
}
.box:hover .ninja-cut {
  opacity: 1;
  -webkit-clip-path: polygon(-150% 0, 100% -150%, 250% 100%, 99% 250%);
          clip-path: polygon(-150% 0, 100% -150%, 250% 100%, 99% 250%);
  -webkit-transform: scale(1);
          transform: scale(1);
  transition: 486ms clip-path cubic-bezier(0.7, 0.3, 0, 1) 350ms, 486ms -webkit-clip-path cubic-bezier(0.7, 0.3, 0, 1) 350ms, 100ms opacity linear, 232ms transform cubic-bezier(0.7, 0.3, 0, 1);
}

.trap {
  opacity: 0;
  -webkit-transition: 200ms opacity linear;
  transition: 200ms opacity linear;
  will-change: opacity;
}
.trap::before, .trap::after {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  content: '';
  display: block;
  background: #212121;
  -webkit-transition: 486ms -webkit-transform cubic-bezier(0.5, 0.15, 0.15, 1) 300ms;
  transition: 486ms -webkit-transform cubic-bezier(0.5, 0.15, 0.15, 1) 300ms;
  transition: 486ms transform cubic-bezier(0.5, 0.15, 0.15, 1) 300ms;
  transition: 486ms transform cubic-bezier(0.5, 0.15, 0.15, 1) 300ms, 486ms -webkit-transform cubic-bezier(0.5, 0.15, 0.15, 1) 300ms;
  -webkit-transform: rotateX(0);
          transform: rotateX(0);
  will-change: transform;
}
.trap::before {
  top: 0;
  -webkit-transform-origin: 50% 0;
          transform-origin: 50% 0;
}
.trap::after {
  bottom: 0;
  -webkit-transform-origin: 50% 100%;
          transform-origin: 50% 100%;
}
.box:hover .trap {
  opacity: 1;
}
.box:hover .trap::before, .box:hover .trap::after {
  -webkit-transform: rotateX(0);
          transform: rotateX(0);
}
.box:hover .trap::before {
  -webkit-transform: rotateX(-100deg);
          transform: rotateX(-100deg);
}
.box:hover .trap::after {
  -webkit-transform: rotateX(100deg);
          transform: rotateX(100deg);
}

.twerking {
  opacity: 0;
  -webkit-transition: 200ms opacity linear;
  transition: 200ms opacity linear;
  -webkit-transform-origin: 50% 50%;
          transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.box:hover .twerking {
  opacity: 1;
  -webkit-animation: twerk 666ms cubic-bezier(0.3, 0.7, 0, 1.5) both;
          animation: twerk 666ms cubic-bezier(0.3, 0.7, 0, 1.5) both;
}

@-webkit-keyframes twerk {
  10%, 90% {
    -webkit-transform: translate3d(0, -1px, 0) rotate(-1deg);
            transform: translate3d(0, -1px, 0) rotate(-1deg);
    -webkit-transform-origin: 150% 50%;
            transform-origin: 150% 50%;
  }
  20%, 80% {
    -webkit-transform: translate3d(0, 2px, 0) rotate(2deg);
            transform: translate3d(0, 2px, 0) rotate(2deg);
    -webkit-transform-origin: -50% 50%;
            transform-origin: -50% 50%;
  }
  30%, 50%, 70% {
    -webkit-transform: translate3d(0, -4px, 0) rotate(-4deg);
            transform: translate3d(0, -4px, 0) rotate(-4deg);
    -webkit-transform-origin: 150% 50%;
            transform-origin: 150% 50%;
  }
  40%, 60% {
    -webkit-transform: translate3d(0, 4px, 0) rotate(4deg);
            transform: translate3d(0, 4px, 0) rotate(4deg);
    -webkit-transform-origin: -50% 50%;
            transform-origin: -50% 50%;
  }
}

@keyframes twerk {
  10%, 90% {
    -webkit-transform: translate3d(0, -1px, 0) rotate(-1deg);
            transform: translate3d(0, -1px, 0) rotate(-1deg);
    -webkit-transform-origin: 150% 50%;
            transform-origin: 150% 50%;
  }
  20%, 80% {
    -webkit-transform: translate3d(0, 2px, 0) rotate(2deg);
            transform: translate3d(0, 2px, 0) rotate(2deg);
    -webkit-transform-origin: -50% 50%;
            transform-origin: -50% 50%;
  }
  30%, 50%, 70% {
    -webkit-transform: translate3d(0, -4px, 0) rotate(-4deg);
            transform: translate3d(0, -4px, 0) rotate(-4deg);
    -webkit-transform-origin: 150% 50%;
            transform-origin: 150% 50%;
  }
  40%, 60% {
    -webkit-transform: translate3d(0, 4px, 0) rotate(4deg);
            transform: translate3d(0, 4px, 0) rotate(4deg);
    -webkit-transform-origin: -50% 50%;
            transform-origin: -50% 50%;
  }
}
.eclipse {
  opacity: 0;
  will-change: clip-path, -webkit-clip-path, opacity;
  -webkit-clip-path: circle(75% at 50% 50%);
          clip-path: circle(75% at 50% 50%);
}
.eclipse::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #212121;
  border-radius: 100%;
  -webkit-transition: 555ms -webkit-transform cubic-bezier(0.5, 0, 0, 1) 55ms;
  transition: 555ms -webkit-transform cubic-bezier(0.5, 0, 0, 1) 55ms;
  transition: 555ms transform cubic-bezier(0.5, 0, 0, 1) 55ms;
  transition: 555ms transform cubic-bezier(0.5, 0, 0, 1) 55ms, 555ms -webkit-transform cubic-bezier(0.5, 0, 0, 1) 55ms;
  box-shadow: 0 0 1rem black;
}
.box:hover .eclipse {
  opacity: 1;
  -webkit-clip-path: circle(10% at 50% 50%);
          clip-path: circle(10% at 50% 50%);
  transition: 766ms clip-path cubic-bezier(0.5, 0, 0.15, 1) 50ms, 766ms -webkit-clip-path cubic-bezier(0.5, 0, 0.15, 1) 50ms, 100ms opacity linear 60ms;
}
.box:hover .eclipse::after {
  -webkit-transform: scale(0.25);
          transform: scale(0.25);
}

.swing-in {
  -webkit-transition: 200ms opacity linear, 100ms -webkit-transform 300ms;
  transition: 200ms opacity linear, 100ms -webkit-transform 300ms;
  transition: 100ms transform 300ms, 200ms opacity linear;
  transition: 100ms transform 300ms, 200ms opacity linear, 100ms -webkit-transform 300ms;
  -webkit-transform: translate(150%, 0) rotate(-40deg) scale(0.8);
          transform: translate(150%, 0) rotate(-40deg) scale(0.8);
  -webkit-transform-origin: 50% 150%;
          transform-origin: 50% 150%;
  opacity: 0;
  will-change: opacity, transform;
}
.box:hover .swing-in {
  -webkit-transition: 500ms opacity linear 140ms, 640ms -webkit-transform cubic-bezier(0.16, 0.84, 0.44, 1);
  transition: 500ms opacity linear 140ms, 640ms -webkit-transform cubic-bezier(0.16, 0.84, 0.44, 1);
  transition: 640ms transform cubic-bezier(0.16, 0.84, 0.44, 1), 500ms opacity linear 140ms;
  transition: 640ms transform cubic-bezier(0.16, 0.84, 0.44, 1), 500ms opacity linear 140ms, 640ms -webkit-transform cubic-bezier(0.16, 0.84, 0.44, 1);
  -webkit-transform: translate(0%, 0) rotate(0deg) scale(1);
          transform: translate(0%, 0) rotate(0deg) scale(1);
  opacity: 1;
}

.fatclap {
  position: relative;
  background: transparent;
  opacity: 0;
  -webkit-transition: 333ms opacity;
  transition: 333ms opacity;
  will-change: opacity;
}
.fatclap::before, .fatclap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  background: inherit;
  -webkit-clip-path: inset(0.2rem 0.2rem 0.2rem 0.2rem);
          clip-path: inset(0.2rem 0.2rem 0.2rem 0.2rem);
  transition: 200ms transform, 0 clip-path 333ms, 0 -webkit-clip-patg 333ms;
  will-change: transform, clip-path, -webkit-clip-path;
}
.fatclap::before {
  top: 0;
  -webkit-transform: translate3d(0, -150%, 0) scaleX(0.8);
          transform: translate3d(0, -150%, 0) scaleX(0.8);
}
.fatclap::after {
  bottom: 0;
  -webkit-transform: translate3d(0, 150%, 0) scaleX(0.8);
          transform: translate3d(0, 150%, 0) scaleX(0.8);
}
.box:hover .fatclap {
  opacity: 1;
  box-shadow: inset 0 0 0 50rem #212121;
  -webkit-transition: 600ms opacity cubic-bezier(0, 0, 0.3, 1);
  transition: 600ms opacity cubic-bezier(0, 0, 0.3, 1);
}
.box:hover .fatclap::before, .box:hover .fatclap::after {
  -webkit-transform: translate3d(0, 0, 0) scaleX(1);
          transform: translate3d(0, 0, 0) scaleX(1);
  -webkit-clip-path: inset(-0.25rem -0.25rem -0.25rem -0.25rem);
          clip-path: inset(-0.25rem -0.25rem -0.25rem -0.25rem);
  transition: 355ms transform cubic-bezier(0.8, 0.3, 0.25, 2), 143ms clip-path cubic-bezier(0.7, 0.3, 0, 1) 505ms, 143ms -webkit-clip-path cubic-bezier(0.7, 0.3, 0, 1) 505ms, 143ms box-shadow cubic-bezier(0.7, 0.3, 0, 1) 555ms;
}

.spacedoor {
  position: relative;
  opacity: 0;
  will-change: opacity;
}
.spacedoor::before, .spacedoor::after {
  content: '';
  position: absolute;
}
.spacedoor::after {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #212121;
  -webkit-clip-path: inset(6px 6px 6px 6px);
          clip-path: inset(6px 6px 6px 6px);
}
.spacedoor::before {
  opacity: .5;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 1.5rem 0.25rem white, 0 0 0.15rem white, 0 0 0.05rem white;
}
.box:hover .spacedoor {
  opacity: 1;
  -webkit-transition: 600ms opacity cubic-bezier(0, 0, 0.3, 1);
  transition: 600ms opacity cubic-bezier(0, 0, 0.3, 1);
}
.box:hover .spacedoor::before {
  opacity: .5;
  bottom: 0%;
  height: 100%;
  box-shadow: 0 0 1.5rem 0.25rem rgba(255, 255, 255, 0), 0 0 0.15rem rgba(255, 255, 255, 0), 0 0 0.05rem rgba(255, 255, 255, 0);
  -webkit-transition: 666ms bottom cubic-bezier(0.5, 0, 0.15, 1), 500ms opacity linear, 300ms height cubic-bezier(0.7, 0.3, 0, 1) 750ms, 486ms box-shadow linear 1050ms;
  transition: 666ms bottom cubic-bezier(0.5, 0, 0.15, 1), 500ms opacity linear, 300ms height cubic-bezier(0.7, 0.3, 0, 1) 750ms, 486ms box-shadow linear 1050ms;
}
.box:hover .spacedoor::after {
  -webkit-clip-path: inset(-4px -4px -4px -4px);
          clip-path: inset(-4px -4px -4px -4px);
  transition: 290ms clip-path cubic-bezier(0.7, 0.3, 0, 1) 1050ms, 290ms -webkit-clip-path cubic-bezier(0.7, 0.3, 0, 1) 1050ms;
}

.slide-in {
  opacity: 0;
  -webkit-transition: 232ms opacity linear, 0ms -webkit-transform 232ms;
  transition: 232ms opacity linear, 0ms -webkit-transform 232ms;
  transition: 0ms transform 232ms, 232ms opacity linear;
  transition: 0ms transform 232ms, 232ms opacity linear, 0ms -webkit-transform 232ms;
  -webkit-transform: translate3d(-150%, 0, 0) scaleX(1.75);
          transform: translate3d(-150%, 0, 0) scaleX(1.75);
  will-change: transform;
}
.box:hover .slide-in {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0) scaleX(1);
          transform: translate3d(0, 0, 0) scaleX(1);
  -webkit-transition: 777ms opacity linear, 999ms -webkit-transform cubic-bezier(0.13, 1, 0.4, 1);
  transition: 777ms opacity linear, 999ms -webkit-transform cubic-bezier(0.13, 1, 0.4, 1);
  transition: 999ms transform cubic-bezier(0.13, 1, 0.4, 1), 777ms opacity linear;
  transition: 999ms transform cubic-bezier(0.13, 1, 0.4, 1), 777ms opacity linear, 999ms -webkit-transform cubic-bezier(0.13, 1, 0.4, 1);
}

.coin-flip {
  opacity: 0;
  -webkit-transition: 333ms opacity linear, 0ms -webkit-transform 333ms;
  transition: 333ms opacity linear, 0ms -webkit-transform 333ms;
  transition: 0ms transform 333ms, 333ms opacity linear;
  transition: 0ms transform 333ms, 333ms opacity linear, 0ms -webkit-transform 333ms;
  -webkit-transform: translate3d(0, 0, -150vw) rotateY(-360deg) rotateZ(10deg);
          transform: translate3d(0, 0, -150vw) rotateY(-360deg) rotateZ(10deg);
}
.box:hover .coin-flip {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0) rotateY(0deg) rotateZ(0deg);
          transform: translate3d(0, 0, 0) rotateY(0deg) rotateZ(0deg);
  -webkit-transition: 800ms opacity linear, 1200ms -webkit-transform cubic-bezier(0.2, 0.6, 0.3, 1);
  transition: 800ms opacity linear, 1200ms -webkit-transform cubic-bezier(0.2, 0.6, 0.3, 1);
  transition: 1200ms transform cubic-bezier(0.2, 0.6, 0.3, 1), 800ms opacity linear;
  transition: 1200ms transform cubic-bezier(0.2, 0.6, 0.3, 1), 800ms opacity linear, 1200ms -webkit-transform cubic-bezier(0.2, 0.6, 0.3, 1);
}
JS
Array.from(document.querySelectorAll('.box')).forEach($e => {
  $e.addEventListener('mouseenter', e => {
    const husl = HUSL.toHex(Math.random() * 360, 100, 80);
    $e.querySelector('.anim').style = `background-color: ${husl}`;
  });
});

document.addEventListener('click', e => {
  e.preventDefault();
});
Host Instantly Drag and Drop Website Builder

 

Description

the pen I use to explore different kind of bezier functions.
Term
Mon, 11/27/2017 - 22:11

Related Codes

Pen ID
Pen ID
Pen ID