JS / CSS3 Popup With Fragment Animations – Shattered Popup

Category: Javascript , Modal & Popup | April 5, 2016
Author: suez
Views Total: 2,568
Official Page: Go to website
Last Update: April 5, 2016
License: MIT

Preview:

JS / CSS3 Popup With Fragment Animations – Shattered Popup

Description:

A JavaScript/CSS powered popup that uses CSS3 3D transforms and clip-path: polygon to create fragment animations while opening.

How to use it:

Build the html structure for the popup.

<div class="popups-cont">
  <div class="popups-cont__overlay"></div>
  <div class="popup">
    <div class="popup__pieces"></div>
    <div class="popup__content">
      <div class="popup__close"></div>
      <h3 class="popup__heading">Shattered Popup</h3>
      <p class="popup__text">Popup Content Goes Here</p>
    </div>
  </div>
</div>

Create a button to toggle the popup.

<button type="button">Show Popup</button>

The main CSS to style the popup.

.popups-cont {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  z-index: -10;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  -webkit-perspective: 1000px;
  perspective: 1000px;
  pointer-events: none;
  -webkit-transition: z-index 0s 0.8s;
  transition: z-index 0s 0.8s;
}

.popups-cont.s--popup-active {
  z-index: 1000;
  pointer-events: auto;
  -webkit-transition: z-index 0s 0s;
  transition: z-index 0s 0s;
}

.popups-cont__overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  -webkit-transition: opacity 0.35s;
  transition: opacity 0.35s;
}

.popups-cont.s--popup-active .popups-cont__overlay {
  opacity: 1;
  -webkit-transition: opacity 0.35s 0.35s;
  transition: opacity 0.35s 0.35s;
}

.popup {
  z-index: 2;
  position: relative;
  width: 500px;
  height: 500px;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.popup .popup__piece:nth-child(1) {
  height: 20.66667%;
  width: 18.66667%;
}

.popup__content {
  position: relative;
  min-height: 500px;
  padding: 30px;
  background: #000;
  color: #fff;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
  opacity: 0;
}

.popup.s--active .popup__content {
  -webkit-transition-delay: 0.6s;
  transition-delay: 0.6s;
  opacity: 1;
}

.popup__close {
  position: absolute;
  right: 30px;
  top: 30px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.popup__close:before, .popup__close:after {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 100%;
  height: 2px;
  background: #fff;
}

.popup__close:before {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.popup__close:after {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.popup__heading {
  margin-bottom: 20px;
  font-size: 30px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.popup__text {
  font-size: 18px;
  line-height: 1.5;
}

The CSS/CSS3 rules for the fragment animation.

.popup .popup__piece:nth-child(1) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(22vw, 13vh, -496px) rotateX(472deg) rotateY(388deg);
  transform: translate3d(22vw, 13vh, -496px) rotateX(472deg) rotateY(388deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 56% 100%);
  clip-path: polygon(0 0, 0 100%, 56% 100%);
}

.popup .popup__piece:nth-child(1) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-20vw, -10vh, -245px) rotateX(204deg) rotateY(458deg);
  transform: translate3d(-20vw, -10vh, -245px) rotateX(204deg) rotateY(458deg);
  -webkit-clip-path: polygon(0 0, 56% 100%, 100% 0);
  clip-path: polygon(0 0, 56% 100%, 100% 0);
}

.popup .popup__piece:nth-child(1) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(26vw, -41vh, -775px) rotateX(220deg) rotateY(175deg);
  transform: translate3d(26vw, -41vh, -775px) rotateX(220deg) rotateY(175deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 56% 100%);
  clip-path: polygon(100% 0, 100% 100%, 56% 100%);
}

.popup.s--closed .popup__piece:nth-child(1) {
  -webkit-transform: translate3d(0, 134vh, 0);
  transform: translate3d(0, 134vh, 0);
}

.popup.s--closed .popup__piece:nth-child(1) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(63vw, 0, 0) rotateX(435deg) rotateY(267deg);
  transform: translate3d(63vw, 0, 0) rotateX(435deg) rotateY(267deg);
}

.popup.s--closed .popup__piece:nth-child(1) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-74vw, 0, 0) rotateX(466deg) rotateY(380deg);
  transform: translate3d(-74vw, 0, 0) rotateX(466deg) rotateY(380deg);
}

.popup.s--closed .popup__piece:nth-child(1) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-45vw, 0, 0) rotateX(301deg) rotateY(124deg);
  transform: translate3d(-45vw, 0, 0) rotateX(301deg) rotateY(124deg);
}

.popup .popup__piece:nth-child(2) {
  height: 20.66667%;
  width: 19.66667%;
}

.popup .popup__piece:nth-child(2) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(27vw, -23vh, -348px) rotateX(324deg) rotateY(215deg);
  transform: translate3d(27vw, -23vh, -348px) rotateX(324deg) rotateY(215deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 48% 100%);
  clip-path: polygon(0 0, 0 100%, 48% 100%);
}

.popup .popup__piece:nth-child(2) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(3vw, 18vh, -755px) rotateX(280deg) rotateY(403deg);
  transform: translate3d(3vw, 18vh, -755px) rotateX(280deg) rotateY(403deg);
  -webkit-clip-path: polygon(0 0, 48% 100%, 100% 0);
  clip-path: polygon(0 0, 48% 100%, 100% 0);
}

.popup .popup__piece:nth-child(2) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(54vw, -25vh, 241px) rotateX(331deg) rotateY(422deg);
  transform: translate3d(54vw, -25vh, 241px) rotateX(331deg) rotateY(422deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 48% 100%);
  clip-path: polygon(100% 0, 100% 100%, 48% 100%);
}

.popup.s--closed .popup__piece:nth-child(2) {
  -webkit-transform: translate3d(0, 145vh, 0);
  transform: translate3d(0, 145vh, 0);
}

.popup.s--closed .popup__piece:nth-child(2) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-55vw, 0, 0) rotateX(155deg) rotateY(331deg);
  transform: translate3d(-55vw, 0, 0) rotateX(155deg) rotateY(331deg);
}

.popup.s--closed .popup__piece:nth-child(2) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-41vw, 0, 0) rotateX(400deg) rotateY(478deg);
  transform: translate3d(-41vw, 0, 0) rotateX(400deg) rotateY(478deg);
}

.popup.s--closed .popup__piece:nth-child(2) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(70vw, 0, 0) rotateX(472deg) rotateY(415deg);
  transform: translate3d(70vw, 0, 0) rotateX(472deg) rotateY(415deg);
}

.popup .popup__piece:nth-child(3) {
  height: 20.66667%;
  width: 14.66667%;
}

.popup .popup__piece:nth-child(3) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-53vw, -14vh, 328px) rotateX(211deg) rotateY(169deg);
  transform: translate3d(-53vw, -14vh, 328px) rotateX(211deg) rotateY(169deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 37% 100%);
  clip-path: polygon(0 0, 0 100%, 37% 100%);
}

.popup .popup__piece:nth-child(3) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-39vw, 24vh, -580px) rotateX(126deg) rotateY(262deg);
  transform: translate3d(-39vw, 24vh, -580px) rotateX(126deg) rotateY(262deg);
  -webkit-clip-path: polygon(0 0, 37% 100%, 100% 0);
  clip-path: polygon(0 0, 37% 100%, 100% 0);
}

.popup .popup__piece:nth-child(3) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-26vw, 53vh, 198px) rotateX(473deg) rotateY(292deg);
  transform: translate3d(-26vw, 53vh, 198px) rotateX(473deg) rotateY(292deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 37% 100%);
  clip-path: polygon(100% 0, 100% 100%, 37% 100%);
}

.popup.s--closed .popup__piece:nth-child(3) {
  -webkit-transform: translate3d(0, 103vh, 0);
  transform: translate3d(0, 103vh, 0);
}

.popup.s--closed .popup__piece:nth-child(3) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-49vw, 0, 0) rotateX(340deg) rotateY(283deg);
  transform: translate3d(-49vw, 0, 0) rotateX(340deg) rotateY(283deg);
}

.popup.s--closed .popup__piece:nth-child(3) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(74vw, 0, 0) rotateX(436deg) rotateY(208deg);
  transform: translate3d(74vw, 0, 0) rotateX(436deg) rotateY(208deg);
}

.popup.s--closed .popup__piece:nth-child(3) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-34vw, 0, 0) rotateX(317deg) rotateY(308deg);
  transform: translate3d(-34vw, 0, 0) rotateX(317deg) rotateY(308deg);
}

.popup .popup__piece:nth-child(4) {
  height: 20.66667%;
  width: 20.66667%;
}

.popup .popup__piece:nth-child(4) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(14vw, -42vh, 601px) rotateX(151deg) rotateY(186deg);
  transform: translate3d(14vw, -42vh, 601px) rotateX(151deg) rotateY(186deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 34% 100%);
  clip-path: polygon(0 0, 0 100%, 34% 100%);
}

.popup .popup__piece:nth-child(4) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-11vw, -37vh, -899px) rotateX(169deg) rotateY(300deg);
  transform: translate3d(-11vw, -37vh, -899px) rotateX(169deg) rotateY(300deg);
  -webkit-clip-path: polygon(0 0, 34% 100%, 100% 0);
  clip-path: polygon(0 0, 34% 100%, 100% 0);
}

.popup .popup__piece:nth-child(4) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-50vw, 19vh, 438px) rotateX(431deg) rotateY(283deg);
  transform: translate3d(-50vw, 19vh, 438px) rotateX(431deg) rotateY(283deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 34% 100%);
  clip-path: polygon(100% 0, 100% 100%, 34% 100%);
}

.popup.s--closed .popup__piece:nth-child(4) {
  -webkit-transform: translate3d(0, 111vh, 0);
  transform: translate3d(0, 111vh, 0);
}

.popup.s--closed .popup__piece:nth-child(4) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-48vw, 0, 0) rotateX(335deg) rotateY(441deg);
  transform: translate3d(-48vw, 0, 0) rotateX(335deg) rotateY(441deg);
}

.popup.s--closed .popup__piece:nth-child(4) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(48vw, 0, 0) rotateX(450deg) rotateY(368deg);
  transform: translate3d(48vw, 0, 0) rotateX(450deg) rotateY(368deg);
}

.popup.s--closed .popup__piece:nth-child(4) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(44vw, 0, 0) rotateX(203deg) rotateY(152deg);
  transform: translate3d(44vw, 0, 0) rotateX(203deg) rotateY(152deg);
}

.popup .popup__piece:nth-child(5) {
  height: 20.66667%;
  width: 6.66667%;
}

.popup .popup__piece:nth-child(5) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-9vw, 17vh, -886px) rotateX(138deg) rotateY(396deg);
  transform: translate3d(-9vw, 17vh, -886px) rotateX(138deg) rotateY(396deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 31% 100%);
  clip-path: polygon(0 0, 0 100%, 31% 100%);
}

.popup .popup__piece:nth-child(5) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(9vw, -15vh, -820px) rotateX(338deg) rotateY(300deg);
  transform: translate3d(9vw, -15vh, -820px) rotateX(338deg) rotateY(300deg);
  -webkit-clip-path: polygon(0 0, 31% 100%, 100% 0);
  clip-path: polygon(0 0, 31% 100%, 100% 0);
}

.popup .popup__piece:nth-child(5) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-7vw, 29vh, -578px) rotateX(314deg) rotateY(149deg);
  transform: translate3d(-7vw, 29vh, -578px) rotateX(314deg) rotateY(149deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 31% 100%);
  clip-path: polygon(100% 0, 100% 100%, 31% 100%);
}

.popup.s--closed .popup__piece:nth-child(5) {
  -webkit-transform: translate3d(0, 114vh, 0);
  transform: translate3d(0, 114vh, 0);
}

.popup.s--closed .popup__piece:nth-child(5) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-63vw, 0, 0) rotateX(275deg) rotateY(321deg);
  transform: translate3d(-63vw, 0, 0) rotateX(275deg) rotateY(321deg);
}

.popup.s--closed .popup__piece:nth-child(5) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(58vw, 0, 0) rotateX(228deg) rotateY(459deg);
  transform: translate3d(58vw, 0, 0) rotateX(228deg) rotateY(459deg);
}

.popup.s--closed .popup__piece:nth-child(5) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-27vw, 0, 0) rotateX(367deg) rotateY(258deg);
  transform: translate3d(-27vw, 0, 0) rotateX(367deg) rotateY(258deg);
}

.popup .popup__piece:nth-child(6) {
  height: 20.66667%;
  width: 19.66667%;
}

.popup .popup__piece:nth-child(6) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-27vw, -23vh, 493px) rotateX(294deg) rotateY(415deg);
  transform: translate3d(-27vw, -23vh, 493px) rotateX(294deg) rotateY(415deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 62% 100%);
  clip-path: polygon(0 0, 0 100%, 62% 100%);
}

.popup .popup__piece:nth-child(6) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(55vw, -17vh, -327px) rotateX(330deg) rotateY(452deg);
  transform: translate3d(55vw, -17vh, -327px) rotateX(330deg) rotateY(452deg);
  -webkit-clip-path: polygon(0 0, 62% 100%, 100% 0);
  clip-path: polygon(0 0, 62% 100%, 100% 0);
}

.popup .popup__piece:nth-child(6) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(36vw, 7vh, 625px) rotateX(256deg) rotateY(428deg);
  transform: translate3d(36vw, 7vh, 625px) rotateX(256deg) rotateY(428deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 62% 100%);
  clip-path: polygon(100% 0, 100% 100%, 62% 100%);
}

.popup.s--closed .popup__piece:nth-child(6) {
  -webkit-transform: translate3d(0, 135vh, 0);
  transform: translate3d(0, 135vh, 0);
}

.popup.s--closed .popup__piece:nth-child(6) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-66vw, 0, 0) rotateX(318deg) rotateY(459deg);
  transform: translate3d(-66vw, 0, 0) rotateX(318deg) rotateY(459deg);
}

.popup.s--closed .popup__piece:nth-child(6) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-51vw, 0, 0) rotateX(407deg) rotateY(293deg);
  transform: translate3d(-51vw, 0, 0) rotateX(407deg) rotateY(293deg);
}

.popup.s--closed .popup__piece:nth-child(6) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-19vw, 0, 0) rotateX(179deg) rotateY(206deg);
  transform: translate3d(-19vw, 0, 0) rotateX(179deg) rotateY(206deg);
}

.popup .popup__piece:nth-child(7) {
  height: 14.66667%;
  width: 20.66667%;
}

.popup .popup__piece:nth-child(7) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-39vw, 27vh, -627px) rotateX(147deg) rotateY(281deg);
  transform: translate3d(-39vw, 27vh, -627px) rotateX(147deg) rotateY(281deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 38% 100%);
  clip-path: polygon(0 0, 0 100%, 38% 100%);
}

.popup .popup__piece:nth-child(7) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-15vw, 36vh, -262px) rotateX(422deg) rotateY(182deg);
  transform: translate3d(-15vw, 36vh, -262px) rotateX(422deg) rotateY(182deg);
  -webkit-clip-path: polygon(0 0, 38% 100%, 100% 0);
  clip-path: polygon(0 0, 38% 100%, 100% 0);
}

.popup .popup__piece:nth-child(7) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(38vw, 16vh, 464px) rotateX(435deg) rotateY(191deg);
  transform: translate3d(38vw, 16vh, 464px) rotateX(435deg) rotateY(191deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 38% 100%);
  clip-path: polygon(100% 0, 100% 100%, 38% 100%);
}

.popup.s--closed .popup__piece:nth-child(7) {
  -webkit-transform: translate3d(0, 142vh, 0);
  transform: translate3d(0, 142vh, 0);
}

.popup.s--closed .popup__piece:nth-child(7) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(49vw, 0, 0) rotateX(441deg) rotateY(131deg);
  transform: translate3d(49vw, 0, 0) rotateX(441deg) rotateY(131deg);
}

.popup.s--closed .popup__piece:nth-child(7) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-52vw, 0, 0) rotateX(314deg) rotateY(344deg);
  transform: translate3d(-52vw, 0, 0) rotateX(314deg) rotateY(344deg);
}

.popup.s--closed .popup__piece:nth-child(7) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-33vw, 0, 0) rotateX(277deg) rotateY(190deg);
  transform: translate3d(-33vw, 0, 0) rotateX(277deg) rotateY(190deg);
}

.popup .popup__piece:nth-child(8) {
  height: 14.66667%;
  width: 13.66667%;
}

.popup .popup__piece:nth-child(8) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-58vw, 6vh, 720px) rotateX(348deg) rotateY(376deg);
  transform: translate3d(-58vw, 6vh, 720px) rotateX(348deg) rotateY(376deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 39% 100%);
  clip-path: polygon(0 0, 0 100%, 39% 100%);
}

.popup .popup__piece:nth-child(8) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-7vw, 55vh, 264px) rotateX(171deg) rotateY(399deg);
  transform: translate3d(-7vw, 55vh, 264px) rotateX(171deg) rotateY(399deg);
  -webkit-clip-path: polygon(0 0, 39% 100%, 100% 0);
  clip-path: polygon(0 0, 39% 100%, 100% 0);
}

.popup .popup__piece:nth-child(8) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-7vw, -57vh, -512px) rotateX(262deg) rotateY(214deg);
  transform: translate3d(-7vw, -57vh, -512px) rotateX(262deg) rotateY(214deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 39% 100%);
  clip-path: polygon(100% 0, 100% 100%, 39% 100%);
}

.popup.s--closed .popup__piece:nth-child(8) {
  -webkit-transform: translate3d(0, 146vh, 0);
  transform: translate3d(0, 146vh, 0);
}

.popup.s--closed .popup__piece:nth-child(8) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-38vw, 0, 0) rotateX(468deg) rotateY(190deg);
  transform: translate3d(-38vw, 0, 0) rotateX(468deg) rotateY(190deg);
}

.popup.s--closed .popup__piece:nth-child(8) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(0vw, 0, 0) rotateX(224deg) rotateY(308deg);
  transform: translate3d(0vw, 0, 0) rotateX(224deg) rotateY(308deg);
}

.popup.s--closed .popup__piece:nth-child(8) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(63vw, 0, 0) rotateX(319deg) rotateY(318deg);
  transform: translate3d(63vw, 0, 0) rotateX(319deg) rotateY(318deg);
}

.popup .popup__piece:nth-child(9) {
  height: 14.66667%;
  width: 12.66667%;
}

.popup .popup__piece:nth-child(9) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-23vw, -22vh, 97px) rotateX(208deg) rotateY(122deg);
  transform: translate3d(-23vw, -22vh, 97px) rotateX(208deg) rotateY(122deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 54% 100%);
  clip-path: polygon(0 0, 0 100%, 54% 100%);
}

.popup .popup__piece:nth-child(9) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(45vw, 41vh, 54px) rotateX(358deg) rotateY(414deg);
  transform: translate3d(45vw, 41vh, 54px) rotateX(358deg) rotateY(414deg);
  -webkit-clip-path: polygon(0 0, 54% 100%, 100% 0);
  clip-path: polygon(0 0, 54% 100%, 100% 0);
}

.popup .popup__piece:nth-child(9) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-15vw, 53vh, -473px) rotateX(180deg) rotateY(379deg);
  transform: translate3d(-15vw, 53vh, -473px) rotateX(180deg) rotateY(379deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 54% 100%);
  clip-path: polygon(100% 0, 100% 100%, 54% 100%);
}

.popup.s--closed .popup__piece:nth-child(9) {
  -webkit-transform: translate3d(0, 129vh, 0);
  transform: translate3d(0, 129vh, 0);
}

.popup.s--closed .popup__piece:nth-child(9) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(59vw, 0, 0) rotateX(477deg) rotateY(133deg);
  transform: translate3d(59vw, 0, 0) rotateX(477deg) rotateY(133deg);
}

.popup.s--closed .popup__piece:nth-child(9) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-57vw, 0, 0) rotateX(451deg) rotateY(201deg);
  transform: translate3d(-57vw, 0, 0) rotateX(451deg) rotateY(201deg);
}

.popup.s--closed .popup__piece:nth-child(9) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(32vw, 0, 0) rotateX(243deg) rotateY(196deg);
  transform: translate3d(32vw, 0, 0) rotateX(243deg) rotateY(196deg);
}

.popup .popup__piece:nth-child(10) {
  height: 14.66667%;
  width: 18.66667%;
}

.popup .popup__piece:nth-child(10) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(56vw, 49vh, 308px) rotateX(190deg) rotateY(408deg);
  transform: translate3d(56vw, 49vh, 308px) rotateX(190deg) rotateY(408deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 51% 100%);
  clip-path: polygon(0 0, 0 100%, 51% 100%);
}

.popup .popup__piece:nth-child(10) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-4vw, 53vh, 757px) rotateX(407deg) rotateY(272deg);
  transform: translate3d(-4vw, 53vh, 757px) rotateX(407deg) rotateY(272deg);
  -webkit-clip-path: polygon(0 0, 51% 100%, 100% 0);
  clip-path: polygon(0 0, 51% 100%, 100% 0);
}

.popup .popup__piece:nth-child(10) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(37vw, -21vh, -407px) rotateX(262deg) rotateY(429deg);
  transform: translate3d(37vw, -21vh, -407px) rotateX(262deg) rotateY(429deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 51% 100%);
  clip-path: polygon(100% 0, 100% 100%, 51% 100%);
}

.popup.s--closed .popup__piece:nth-child(10) {
  -webkit-transform: translate3d(0, 140vh, 0);
  transform: translate3d(0, 140vh, 0);
}

.popup.s--closed .popup__piece:nth-child(10) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(29vw, 0, 0) rotateX(439deg) rotateY(197deg);
  transform: translate3d(29vw, 0, 0) rotateX(439deg) rotateY(197deg);
}

.popup.s--closed .popup__piece:nth-child(10) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-67vw, 0, 0) rotateX(339deg) rotateY(280deg);
  transform: translate3d(-67vw, 0, 0) rotateX(339deg) rotateY(280deg);
}

.popup.s--closed .popup__piece:nth-child(10) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(53vw, 0, 0) rotateX(356deg) rotateY(187deg);
  transform: translate3d(53vw, 0, 0) rotateX(356deg) rotateY(187deg);
}

.popup .popup__piece:nth-child(11) {
  height: 14.66667%;
  width: 17.66667%;
}

.popup .popup__piece:nth-child(11) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(40vw, 2vh, -608px) rotateX(305deg) rotateY(316deg);
  transform: translate3d(40vw, 2vh, -608px) rotateX(305deg) rotateY(316deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 49% 100%);
  clip-path: polygon(0 0, 0 100%, 49% 100%);
}

.popup .popup__piece:nth-child(11) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-12vw, 11vh, 517px) rotateX(150deg) rotateY(200deg);
  transform: translate3d(-12vw, 11vh, 517px) rotateX(150deg) rotateY(200deg);
  -webkit-clip-path: polygon(0 0, 49% 100%, 100% 0);
  clip-path: polygon(0 0, 49% 100%, 100% 0);
}

.popup .popup__piece:nth-child(11) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-22vw, 31vh, 794px) rotateX(276deg) rotateY(382deg);
  transform: translate3d(-22vw, 31vh, 794px) rotateX(276deg) rotateY(382deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 49% 100%);
  clip-path: polygon(100% 0, 100% 100%, 49% 100%);
}

.popup.s--closed .popup__piece:nth-child(11) {
  -webkit-transform: translate3d(0, 145vh, 0);
  transform: translate3d(0, 145vh, 0);
}

.popup.s--closed .popup__piece:nth-child(11) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-37vw, 0, 0) rotateX(457deg) rotateY(409deg);
  transform: translate3d(-37vw, 0, 0) rotateX(457deg) rotateY(409deg);
}

.popup.s--closed .popup__piece:nth-child(11) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-23vw, 0, 0) rotateX(435deg) rotateY(366deg);
  transform: translate3d(-23vw, 0, 0) rotateX(435deg) rotateY(366deg);
}

.popup.s--closed .popup__piece:nth-child(11) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(9vw, 0, 0) rotateX(224deg) rotateY(331deg);
  transform: translate3d(9vw, 0, 0) rotateX(224deg) rotateY(331deg);
}

.popup .popup__piece:nth-child(12) {
  height: 14.66667%;
  width: 16.66667%;
}

.popup .popup__piece:nth-child(12) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(58vw, 38vh, 274px) rotateX(313deg) rotateY(162deg);
  transform: translate3d(58vw, 38vh, 274px) rotateX(313deg) rotateY(162deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 33% 100%);
  clip-path: polygon(0 0, 0 100%, 33% 100%);
}

.popup .popup__piece:nth-child(12) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-18vw, 42vh, 704px) rotateX(454deg) rotateY(176deg);
  transform: translate3d(-18vw, 42vh, 704px) rotateX(454deg) rotateY(176deg);
  -webkit-clip-path: polygon(0 0, 33% 100%, 100% 0);
  clip-path: polygon(0 0, 33% 100%, 100% 0);
}

.popup .popup__piece:nth-child(12) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(46vw, 54vh, 459px) rotateX(433deg) rotateY(383deg);
  transform: translate3d(46vw, 54vh, 459px) rotateX(433deg) rotateY(383deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 33% 100%);
  clip-path: polygon(100% 0, 100% 100%, 33% 100%);
}

.popup.s--closed .popup__piece:nth-child(12) {
  -webkit-transform: translate3d(0, 149vh, 0);
  transform: translate3d(0, 149vh, 0);
}

.popup.s--closed .popup__piece:nth-child(12) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-19vw, 0, 0) rotateX(381deg) rotateY(156deg);
  transform: translate3d(-19vw, 0, 0) rotateX(381deg) rotateY(156deg);
}

.popup.s--closed .popup__piece:nth-child(12) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(16vw, 0, 0) rotateX(370deg) rotateY(225deg);
  transform: translate3d(16vw, 0, 0) rotateX(370deg) rotateY(225deg);
}

.popup.s--closed .popup__piece:nth-child(12) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(20vw, 0, 0) rotateX(250deg) rotateY(282deg);
  transform: translate3d(20vw, 0, 0) rotateX(250deg) rotateY(282deg);
}

.popup .popup__piece:nth-child(13) {
  height: 16.66667%;
  width: 12.66667%;
}

.popup .popup__piece:nth-child(13) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-19vw, 28vh, 872px) rotateX(318deg) rotateY(430deg);
  transform: translate3d(-19vw, 28vh, 872px) rotateX(318deg) rotateY(430deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 41% 100%);
  clip-path: polygon(0 0, 0 100%, 41% 100%);
}

.popup .popup__piece:nth-child(13) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-33vw, -3vh, 45px) rotateX(356deg) rotateY(168deg);
  transform: translate3d(-33vw, -3vh, 45px) rotateX(356deg) rotateY(168deg);
  -webkit-clip-path: polygon(0 0, 41% 100%, 100% 0);
  clip-path: polygon(0 0, 41% 100%, 100% 0);
}

.popup .popup__piece:nth-child(13) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(46vw, 10vh, -34px) rotateX(241deg) rotateY(189deg);
  transform: translate3d(46vw, 10vh, -34px) rotateX(241deg) rotateY(189deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 41% 100%);
  clip-path: polygon(100% 0, 100% 100%, 41% 100%);
}

.popup.s--closed .popup__piece:nth-child(13) {
  -webkit-transform: translate3d(0, 125vh, 0);
  transform: translate3d(0, 125vh, 0);
}

.popup.s--closed .popup__piece:nth-child(13) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-55vw, 0, 0) rotateX(323deg) rotateY(227deg);
  transform: translate3d(-55vw, 0, 0) rotateX(323deg) rotateY(227deg);
}

.popup.s--closed .popup__piece:nth-child(13) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(29vw, 0, 0) rotateX(316deg) rotateY(436deg);
  transform: translate3d(29vw, 0, 0) rotateX(316deg) rotateY(436deg);
}

.popup.s--closed .popup__piece:nth-child(13) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-29vw, 0, 0) rotateX(334deg) rotateY(233deg);
  transform: translate3d(-29vw, 0, 0) rotateX(334deg) rotateY(233deg);
}

.popup .popup__piece:nth-child(14) {
  height: 16.66667%;
  width: 18.66667%;
}

.popup .popup__piece:nth-child(14) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-7vw, -56vh, -46px) rotateX(465deg) rotateY(302deg);
  transform: translate3d(-7vw, -56vh, -46px) rotateX(465deg) rotateY(302deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 60% 100%);
  clip-path: polygon(0 0, 0 100%, 60% 100%);
}

.popup .popup__piece:nth-child(14) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(33vw, -25vh, -323px) rotateX(395deg) rotateY(479deg);
  transform: translate3d(33vw, -25vh, -323px) rotateX(395deg) rotateY(479deg);
  -webkit-clip-path: polygon(0 0, 60% 100%, 100% 0);
  clip-path: polygon(0 0, 60% 100%, 100% 0);
}

.popup .popup__piece:nth-child(14) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(13vw, -16vh, 733px) rotateX(386deg) rotateY(166deg);
  transform: translate3d(13vw, -16vh, 733px) rotateX(386deg) rotateY(166deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 60% 100%);
  clip-path: polygon(100% 0, 100% 100%, 60% 100%);
}

.popup.s--closed .popup__piece:nth-child(14) {
  -webkit-transform: translate3d(0, 110vh, 0);
  transform: translate3d(0, 110vh, 0);
}

.popup.s--closed .popup__piece:nth-child(14) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(11vw, 0, 0) rotateX(422deg) rotateY(338deg);
  transform: translate3d(11vw, 0, 0) rotateX(422deg) rotateY(338deg);
}

.popup.s--closed .popup__piece:nth-child(14) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(69vw, 0, 0) rotateX(394deg) rotateY(450deg);
  transform: translate3d(69vw, 0, 0) rotateX(394deg) rotateY(450deg);
}

.popup.s--closed .popup__piece:nth-child(14) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-1vw, 0, 0) rotateX(324deg) rotateY(129deg);
  transform: translate3d(-1vw, 0, 0) rotateX(324deg) rotateY(129deg);
}

.popup .popup__piece:nth-child(15) {
  height: 16.66667%;
  width: 17.66667%;
}

.popup .popup__piece:nth-child(15) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-10vw, 45vh, -545px) rotateX(185deg) rotateY(345deg);
  transform: translate3d(-10vw, 45vh, -545px) rotateX(185deg) rotateY(345deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 46% 100%);
  clip-path: polygon(0 0, 0 100%, 46% 100%);
}

.popup .popup__piece:nth-child(15) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-51vw, -32vh, -603px) rotateX(297deg) rotateY(167deg);
  transform: translate3d(-51vw, -32vh, -603px) rotateX(297deg) rotateY(167deg);
  -webkit-clip-path: polygon(0 0, 46% 100%, 100% 0);
  clip-path: polygon(0 0, 46% 100%, 100% 0);
}

.popup .popup__piece:nth-child(15) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(32vw, 32vh, -624px) rotateX(272deg) rotateY(313deg);
  transform: translate3d(32vw, 32vh, -624px) rotateX(272deg) rotateY(313deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 46% 100%);
  clip-path: polygon(100% 0, 100% 100%, 46% 100%);
}

.popup.s--closed .popup__piece:nth-child(15) {
  -webkit-transform: translate3d(0, 146vh, 0);
  transform: translate3d(0, 146vh, 0);
}

.popup.s--closed .popup__piece:nth-child(15) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(34vw, 0, 0) rotateX(154deg) rotateY(329deg);
  transform: translate3d(34vw, 0, 0) rotateX(154deg) rotateY(329deg);
}

.popup.s--closed .popup__piece:nth-child(15) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(45vw, 0, 0) rotateX(136deg) rotateY(142deg);
  transform: translate3d(45vw, 0, 0) rotateX(136deg) rotateY(142deg);
}

.popup.s--closed .popup__piece:nth-child(15) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-58vw, 0, 0) rotateX(415deg) rotateY(323deg);
  transform: translate3d(-58vw, 0, 0) rotateX(415deg) rotateY(323deg);
}

.popup .popup__piece:nth-child(16) {
  height: 16.66667%;
  width: 20.66667%;
}

.popup .popup__piece:nth-child(16) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-26vw, 17vh, 439px) rotateX(345deg) rotateY(450deg);
  transform: translate3d(-26vw, 17vh, 439px) rotateX(345deg) rotateY(450deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 47% 100%);
  clip-path: polygon(0 0, 0 100%, 47% 100%);
}

.popup .popup__piece:nth-child(16) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(33vw, -14vh, 728px) rotateX(285deg) rotateY(164deg);
  transform: translate3d(33vw, -14vh, 728px) rotateX(285deg) rotateY(164deg);
  -webkit-clip-path: polygon(0 0, 47% 100%, 100% 0);
  clip-path: polygon(0 0, 47% 100%, 100% 0);
}

.popup .popup__piece:nth-child(16) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-58vw, -29vh, 401px) rotateX(175deg) rotateY(205deg);
  transform: translate3d(-58vw, -29vh, 401px) rotateX(175deg) rotateY(205deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 47% 100%);
  clip-path: polygon(100% 0, 100% 100%, 47% 100%);
}

.popup.s--closed .popup__piece:nth-child(16) {
  -webkit-transform: translate3d(0, 130vh, 0);
  transform: translate3d(0, 130vh, 0);
}

.popup.s--closed .popup__piece:nth-child(16) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(24vw, 0, 0) rotateX(148deg) rotateY(220deg);
  transform: translate3d(24vw, 0, 0) rotateX(148deg) rotateY(220deg);
}

.popup.s--closed .popup__piece:nth-child(16) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(34vw, 0, 0) rotateX(414deg) rotateY(289deg);
  transform: translate3d(34vw, 0, 0) rotateX(414deg) rotateY(289deg);
}

.popup.s--closed .popup__piece:nth-child(16) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(31vw, 0, 0) rotateX(351deg) rotateY(152deg);
  transform: translate3d(31vw, 0, 0) rotateX(351deg) rotateY(152deg);
}

.popup .popup__piece:nth-child(17) {
  height: 16.66667%;
  width: 15.66667%;
}

.popup .popup__piece:nth-child(17) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-29vw, -46vh, 597px) rotateX(434deg) rotateY(330deg);
  transform: translate3d(-29vw, -46vh, 597px) rotateX(434deg) rotateY(330deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 43% 100%);
  clip-path: polygon(0 0, 0 100%, 43% 100%);
}

.popup .popup__piece:nth-child(17) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-57vw, 58vh, 172px) rotateX(280deg) rotateY(230deg);
  transform: translate3d(-57vw, 58vh, 172px) rotateX(280deg) rotateY(230deg);
  -webkit-clip-path: polygon(0 0, 43% 100%, 100% 0);
  clip-path: polygon(0 0, 43% 100%, 100% 0);
}

.popup .popup__piece:nth-child(17) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(53vw, -4vh, -844px) rotateX(226deg) rotateY(257deg);
  transform: translate3d(53vw, -4vh, -844px) rotateX(226deg) rotateY(257deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 43% 100%);
  clip-path: polygon(100% 0, 100% 100%, 43% 100%);
}

.popup.s--closed .popup__piece:nth-child(17) {
  -webkit-transform: translate3d(0, 137vh, 0);
  transform: translate3d(0, 137vh, 0);
}

.popup.s--closed .popup__piece:nth-child(17) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(45vw, 0, 0) rotateX(231deg) rotateY(297deg);
  transform: translate3d(45vw, 0, 0) rotateX(231deg) rotateY(297deg);
}

.popup.s--closed .popup__piece:nth-child(17) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-20vw, 0, 0) rotateX(449deg) rotateY(380deg);
  transform: translate3d(-20vw, 0, 0) rotateX(449deg) rotateY(380deg);
}

.popup.s--closed .popup__piece:nth-child(17) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(45vw, 0, 0) rotateX(424deg) rotateY(372deg);
  transform: translate3d(45vw, 0, 0) rotateX(424deg) rotateY(372deg);
}

.popup .popup__piece:nth-child(18) {
  height: 16.66667%;
  width: 14.66667%;
}

.popup .popup__piece:nth-child(18) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(39vw, 38vh, 425px) rotateX(244deg) rotateY(336deg);
  transform: translate3d(39vw, 38vh, 425px) rotateX(244deg) rotateY(336deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 52% 100%);
  clip-path: polygon(0 0, 0 100%, 52% 100%);
}

.popup .popup__piece:nth-child(18) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-13vw, 18vh, -777px) rotateX(121deg) rotateY(374deg);
  transform: translate3d(-13vw, 18vh, -777px) rotateX(121deg) rotateY(374deg);
  -webkit-clip-path: polygon(0 0, 52% 100%, 100% 0);
  clip-path: polygon(0 0, 52% 100%, 100% 0);
}

.popup .popup__piece:nth-child(18) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(4vw, 53vh, 468px) rotateX(355deg) rotateY(355deg);
  transform: translate3d(4vw, 53vh, 468px) rotateX(355deg) rotateY(355deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 52% 100%);
  clip-path: polygon(100% 0, 100% 100%, 52% 100%);
}

.popup.s--closed .popup__piece:nth-child(18) {
  -webkit-transform: translate3d(0, 137vh, 0);
  transform: translate3d(0, 137vh, 0);
}

.popup.s--closed .popup__piece:nth-child(18) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(48vw, 0, 0) rotateX(294deg) rotateY(340deg);
  transform: translate3d(48vw, 0, 0) rotateX(294deg) rotateY(340deg);
}

.popup.s--closed .popup__piece:nth-child(18) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-56vw, 0, 0) rotateX(383deg) rotateY(266deg);
  transform: translate3d(-56vw, 0, 0) rotateX(383deg) rotateY(266deg);
}

.popup.s--closed .popup__piece:nth-child(18) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(77vw, 0, 0) rotateX(298deg) rotateY(297deg);
  transform: translate3d(77vw, 0, 0) rotateX(298deg) rotateY(297deg);
}

.popup .popup__piece:nth-child(19) {
  height: 20.66667%;
  width: 13.66667%;
}

.popup .popup__piece:nth-child(19) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-52vw, 60vh, 320px) rotateX(454deg) rotateY(165deg);
  transform: translate3d(-52vw, 60vh, 320px) rotateX(454deg) rotateY(165deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 70% 100%);
  clip-path: polygon(0 0, 0 100%, 70% 100%);
}

.popup .popup__piece:nth-child(19) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-41vw, 12vh, 235px) rotateX(462deg) rotateY(279deg);
  transform: translate3d(-41vw, 12vh, 235px) rotateX(462deg) rotateY(279deg);
  -webkit-clip-path: polygon(0 0, 70% 100%, 100% 0);
  clip-path: polygon(0 0, 70% 100%, 100% 0);
}

.popup .popup__piece:nth-child(19) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-36vw, -49vh, -361px) rotateX(386deg) rotateY(416deg);
  transform: translate3d(-36vw, -49vh, -361px) rotateX(386deg) rotateY(416deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 70% 100%);
  clip-path: polygon(100% 0, 100% 100%, 70% 100%);
}

.popup.s--closed .popup__piece:nth-child(19) {
  -webkit-transform: translate3d(0, 140vh, 0);
  transform: translate3d(0, 140vh, 0);
}

.popup.s--closed .popup__piece:nth-child(19) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(68vw, 0, 0) rotateX(122deg) rotateY(344deg);
  transform: translate3d(68vw, 0, 0) rotateX(122deg) rotateY(344deg);
}

.popup.s--closed .popup__piece:nth-child(19) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-17vw, 0, 0) rotateX(242deg) rotateY(246deg);
  transform: translate3d(-17vw, 0, 0) rotateX(242deg) rotateY(246deg);
}

.popup.s--closed .popup__piece:nth-child(19) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(11vw, 0, 0) rotateX(201deg) rotateY(324deg);
  transform: translate3d(11vw, 0, 0) rotateX(201deg) rotateY(324deg);
}

.popup .popup__piece:nth-child(20) {
  height: 20.66667%;
  width: 12.66667%;
}

.popup .popup__piece:nth-child(20) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-23vw, -43vh, 667px) rotateX(473deg) rotateY(226deg);
  transform: translate3d(-23vw, -43vh, 667px) rotateX(473deg) rotateY(226deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 37% 100%);
  clip-path: polygon(0 0, 0 100%, 37% 100%);
}

.popup .popup__piece:nth-child(20) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(50vw, 54vh, -19px) rotateX(418deg) rotateY(376deg);
  transform: translate3d(50vw, 54vh, -19px) rotateX(418deg) rotateY(376deg);
  -webkit-clip-path: polygon(0 0, 37% 100%, 100% 0);
  clip-path: polygon(0 0, 37% 100%, 100% 0);
}

.popup .popup__piece:nth-child(20) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-57vw, -12vh, 239px) rotateX(210deg) rotateY(269deg);
  transform: translate3d(-57vw, -12vh, 239px) rotateX(210deg) rotateY(269deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 37% 100%);
  clip-path: polygon(100% 0, 100% 100%, 37% 100%);
}

.popup.s--closed .popup__piece:nth-child(20) {
  -webkit-transform: translate3d(0, 138vh, 0);
  transform: translate3d(0, 138vh, 0);
}

.popup.s--closed .popup__piece:nth-child(20) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-7vw, 0, 0) rotateX(264deg) rotateY(437deg);
  transform: translate3d(-7vw, 0, 0) rotateX(264deg) rotateY(437deg);
}

.popup.s--closed .popup__piece:nth-child(20) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(1vw, 0, 0) rotateX(242deg) rotateY(331deg);
  transform: translate3d(1vw, 0, 0) rotateX(242deg) rotateY(331deg);
}

.popup.s--closed .popup__piece:nth-child(20) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(25vw, 0, 0) rotateX(347deg) rotateY(153deg);
  transform: translate3d(25vw, 0, 0) rotateX(347deg) rotateY(153deg);
}

.popup .popup__piece:nth-child(21) {
  height: 20.66667%;
  width: 12.66667%;
}

.popup .popup__piece:nth-child(21) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(33vw, -11vh, 419px) rotateX(169deg) rotateY(203deg);
  transform: translate3d(33vw, -11vh, 419px) rotateX(169deg) rotateY(203deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 68% 100%);
  clip-path: polygon(0 0, 0 100%, 68% 100%);
}

.popup .popup__piece:nth-child(21) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-4vw, -22vh, -783px) rotateX(228deg) rotateY(364deg);
  transform: translate3d(-4vw, -22vh, -783px) rotateX(228deg) rotateY(364deg);
  -webkit-clip-path: polygon(0 0, 68% 100%, 100% 0);
  clip-path: polygon(0 0, 68% 100%, 100% 0);
}

.popup .popup__piece:nth-child(21) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(59vw, -55vh, 154px) rotateX(364deg) rotateY(276deg);
  transform: translate3d(59vw, -55vh, 154px) rotateX(364deg) rotateY(276deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 68% 100%);
  clip-path: polygon(100% 0, 100% 100%, 68% 100%);
}

.popup.s--closed .popup__piece:nth-child(21) {
  -webkit-transform: translate3d(0, 128vh, 0);
  transform: translate3d(0, 128vh, 0);
}

.popup.s--closed .popup__piece:nth-child(21) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-29vw, 0, 0) rotateX(265deg) rotateY(198deg);
  transform: translate3d(-29vw, 0, 0) rotateX(265deg) rotateY(198deg);
}

.popup.s--closed .popup__piece:nth-child(21) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-36vw, 0, 0) rotateX(178deg) rotateY(146deg);
  transform: translate3d(-36vw, 0, 0) rotateX(178deg) rotateY(146deg);
}

.popup.s--closed .popup__piece:nth-child(21) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(23vw, 0, 0) rotateX(189deg) rotateY(341deg);
  transform: translate3d(23vw, 0, 0) rotateX(189deg) rotateY(341deg);
}

.popup .popup__piece:nth-child(22) {
  height: 20.66667%;
  width: 15.66667%;
}

.popup .popup__piece:nth-child(22) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-47vw, -1vh, -27px) rotateX(388deg) rotateY(393deg);
  transform: translate3d(-47vw, -1vh, -27px) rotateX(388deg) rotateY(393deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 48% 100%);
  clip-path: polygon(0 0, 0 100%, 48% 100%);
}

.popup .popup__piece:nth-child(22) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(29vw, -24vh, -804px) rotateX(417deg) rotateY(226deg);
  transform: translate3d(29vw, -24vh, -804px) rotateX(417deg) rotateY(226deg);
  -webkit-clip-path: polygon(0 0, 48% 100%, 100% 0);
  clip-path: polygon(0 0, 48% 100%, 100% 0);
}

.popup .popup__piece:nth-child(22) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(16vw, 56vh, -312px) rotateX(466deg) rotateY(431deg);
  transform: translate3d(16vw, 56vh, -312px) rotateX(466deg) rotateY(431deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 48% 100%);
  clip-path: polygon(100% 0, 100% 100%, 48% 100%);
}

.popup.s--closed .popup__piece:nth-child(22) {
  -webkit-transform: translate3d(0, 109vh, 0);
  transform: translate3d(0, 109vh, 0);
}

.popup.s--closed .popup__piece:nth-child(22) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(38vw, 0, 0) rotateX(420deg) rotateY(421deg);
  transform: translate3d(38vw, 0, 0) rotateX(420deg) rotateY(421deg);
}

.popup.s--closed .popup__piece:nth-child(22) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-79vw, 0, 0) rotateX(376deg) rotateY(388deg);
  transform: translate3d(-79vw, 0, 0) rotateX(376deg) rotateY(388deg);
}

.popup.s--closed .popup__piece:nth-child(22) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-57vw, 0, 0) rotateX(200deg) rotateY(312deg);
  transform: translate3d(-57vw, 0, 0) rotateX(200deg) rotateY(312deg);
}

.popup .popup__piece:nth-child(23) {
  height: 20.66667%;
  width: 31.66667%;
}

.popup .popup__piece:nth-child(23) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-37vw, -46vh, 167px) rotateX(258deg) rotateY(167deg);
  transform: translate3d(-37vw, -46vh, 167px) rotateX(258deg) rotateY(167deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 36% 100%);
  clip-path: polygon(0 0, 0 100%, 36% 100%);
}

.popup .popup__piece:nth-child(23) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(26vw, 31vh, -617px) rotateX(321deg) rotateY(141deg);
  transform: translate3d(26vw, 31vh, -617px) rotateX(321deg) rotateY(141deg);
  -webkit-clip-path: polygon(0 0, 36% 100%, 100% 0);
  clip-path: polygon(0 0, 36% 100%, 100% 0);
}

.popup .popup__piece:nth-child(23) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-4vw, 0vh, 664px) rotateX(205deg) rotateY(326deg);
  transform: translate3d(-4vw, 0vh, 664px) rotateX(205deg) rotateY(326deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 36% 100%);
  clip-path: polygon(100% 0, 100% 100%, 36% 100%);
}

.popup.s--closed .popup__piece:nth-child(23) {
  -webkit-transform: translate3d(0, 142vh, 0);
  transform: translate3d(0, 142vh, 0);
}

.popup.s--closed .popup__piece:nth-child(23) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-5vw, 0, 0) rotateX(447deg) rotateY(436deg);
  transform: translate3d(-5vw, 0, 0) rotateX(447deg) rotateY(436deg);
}

.popup.s--closed .popup__piece:nth-child(23) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(47vw, 0, 0) rotateX(229deg) rotateY(175deg);
  transform: translate3d(47vw, 0, 0) rotateX(229deg) rotateY(175deg);
}

.popup.s--closed .popup__piece:nth-child(23) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(27vw, 0, 0) rotateX(121deg) rotateY(432deg);
  transform: translate3d(27vw, 0, 0) rotateX(121deg) rotateY(432deg);
}

.popup .popup__piece:nth-child(24) {
  height: 20.66667%;
  width: 13.66667%;
}

.popup .popup__piece:nth-child(24) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-31vw, -59vh, -264px) rotateX(246deg) rotateY(301deg);
  transform: translate3d(-31vw, -59vh, -264px) rotateX(246deg) rotateY(301deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 62% 100%);
  clip-path: polygon(0 0, 0 100%, 62% 100%);
}

.popup .popup__piece:nth-child(24) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(35vw, 33vh, -457px) rotateX(223deg) rotateY(446deg);
  transform: translate3d(35vw, 33vh, -457px) rotateX(223deg) rotateY(446deg);
  -webkit-clip-path: polygon(0 0, 62% 100%, 100% 0);
  clip-path: polygon(0 0, 62% 100%, 100% 0);
}

.popup .popup__piece:nth-child(24) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-13vw, -8vh, -275px) rotateX(124deg) rotateY(353deg);
  transform: translate3d(-13vw, -8vh, -275px) rotateX(124deg) rotateY(353deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 62% 100%);
  clip-path: polygon(100% 0, 100% 100%, 62% 100%);
}

.popup.s--closed .popup__piece:nth-child(24) {
  -webkit-transform: translate3d(0, 109vh, 0);
  transform: translate3d(0, 109vh, 0);
}

.popup.s--closed .popup__piece:nth-child(24) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-57vw, 0, 0) rotateX(365deg) rotateY(430deg);
  transform: translate3d(-57vw, 0, 0) rotateX(365deg) rotateY(430deg);
}

.popup.s--closed .popup__piece:nth-child(24) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-60vw, 0, 0) rotateX(471deg) rotateY(448deg);
  transform: translate3d(-60vw, 0, 0) rotateX(471deg) rotateY(448deg);
}

.popup.s--closed .popup__piece:nth-child(24) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-66vw, 0, 0) rotateX(249deg) rotateY(195deg);
  transform: translate3d(-66vw, 0, 0) rotateX(249deg) rotateY(195deg);
}

.popup .popup__piece:nth-child(25) {
  height: 20.66667%;
  width: 18.66667%;
}

.popup .popup__piece:nth-child(25) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(21vw, -39vh, -670px) rotateX(264deg) rotateY(229deg);
  transform: translate3d(21vw, -39vh, -670px) rotateX(264deg) rotateY(229deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 41% 100%);
  clip-path: polygon(0 0, 0 100%, 41% 100%);
}

.popup .popup__piece:nth-child(25) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-37vw, -22vh, -701px) rotateX(300deg) rotateY(471deg);
  transform: translate3d(-37vw, -22vh, -701px) rotateX(300deg) rotateY(471deg);
  -webkit-clip-path: polygon(0 0, 41% 100%, 100% 0);
  clip-path: polygon(0 0, 41% 100%, 100% 0);
}

.popup .popup__piece:nth-child(25) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-36vw, 53vh, -803px) rotateX(454deg) rotateY(261deg);
  transform: translate3d(-36vw, 53vh, -803px) rotateX(454deg) rotateY(261deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 41% 100%);
  clip-path: polygon(100% 0, 100% 100%, 41% 100%);
}

.popup.s--closed .popup__piece:nth-child(25) {
  -webkit-transform: translate3d(0, 118vh, 0);
  transform: translate3d(0, 118vh, 0);
}

.popup.s--closed .popup__piece:nth-child(25) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-30vw, 0, 0) rotateX(268deg) rotateY(427deg);
  transform: translate3d(-30vw, 0, 0) rotateX(268deg) rotateY(427deg);
}

.popup.s--closed .popup__piece:nth-child(25) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(59vw, 0, 0) rotateX(373deg) rotateY(362deg);
  transform: translate3d(59vw, 0, 0) rotateX(373deg) rotateY(362deg);
}

.popup.s--closed .popup__piece:nth-child(25) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(60vw, 0, 0) rotateX(135deg) rotateY(131deg);
  transform: translate3d(60vw, 0, 0) rotateX(135deg) rotateY(131deg);
}

.popup .popup__piece:nth-child(26) {
  height: 20.66667%;
  width: 12.66667%;
}

.popup .popup__piece:nth-child(26) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(8vw, -59vh, 710px) rotateX(245deg) rotateY(138deg);
  transform: translate3d(8vw, -59vh, 710px) rotateX(245deg) rotateY(138deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 43% 100%);
  clip-path: polygon(0 0, 0 100%, 43% 100%);
}

.popup .popup__piece:nth-child(26) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(24vw, 19vh, -1px) rotateX(452deg) rotateY(375deg);
  transform: translate3d(24vw, 19vh, -1px) rotateX(452deg) rotateY(375deg);
  -webkit-clip-path: polygon(0 0, 43% 100%, 100% 0);
  clip-path: polygon(0 0, 43% 100%, 100% 0);
}

.popup .popup__piece:nth-child(26) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(50vw, 53vh, -646px) rotateX(260deg) rotateY(342deg);
  transform: translate3d(50vw, 53vh, -646px) rotateX(260deg) rotateY(342deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 43% 100%);
  clip-path: polygon(100% 0, 100% 100%, 43% 100%);
}

.popup.s--closed .popup__piece:nth-child(26) {
  -webkit-transform: translate3d(0, 116vh, 0);
  transform: translate3d(0, 116vh, 0);
}

.popup.s--closed .popup__piece:nth-child(26) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-55vw, 0, 0) rotateX(124deg) rotateY(264deg);
  transform: translate3d(-55vw, 0, 0) rotateX(124deg) rotateY(264deg);
}

.popup.s--closed .popup__piece:nth-child(26) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(76vw, 0, 0) rotateX(471deg) rotateY(343deg);
  transform: translate3d(76vw, 0, 0) rotateX(471deg) rotateY(343deg);
}

.popup.s--closed .popup__piece:nth-child(26) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(17vw, 0, 0) rotateX(292deg) rotateY(230deg);
  transform: translate3d(17vw, 0, 0) rotateX(292deg) rotateY(230deg);
}

.popup .popup__piece:nth-child(27) {
  height: 20.66667%;
  width: 16.66667%;
}

.popup .popup__piece:nth-child(27) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(55vw, -10vh, -47px) rotateX(404deg) rotateY(172deg);
  transform: translate3d(55vw, -10vh, -47px) rotateX(404deg) rotateY(172deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 49% 100%);
  clip-path: polygon(0 0, 0 100%, 49% 100%);
}

.popup .popup__piece:nth-child(27) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(34vw, 14vh, 532px) rotateX(175deg) rotateY(345deg);
  transform: translate3d(34vw, 14vh, 532px) rotateX(175deg) rotateY(345deg);
  -webkit-clip-path: polygon(0 0, 49% 100%, 100% 0);
  clip-path: polygon(0 0, 49% 100%, 100% 0);
}

.popup .popup__piece:nth-child(27) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-1vw, 7vh, 570px) rotateX(181deg) rotateY(130deg);
  transform: translate3d(-1vw, 7vh, 570px) rotateX(181deg) rotateY(130deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 49% 100%);
  clip-path: polygon(100% 0, 100% 100%, 49% 100%);
}

.popup.s--closed .popup__piece:nth-child(27) {
  -webkit-transform: translate3d(0, 103vh, 0);
  transform: translate3d(0, 103vh, 0);
}

.popup.s--closed .popup__piece:nth-child(27) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(10vw, 0, 0) rotateX(473deg) rotateY(304deg);
  transform: translate3d(10vw, 0, 0) rotateX(473deg) rotateY(304deg);
}

.popup.s--closed .popup__piece:nth-child(27) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(25vw, 0, 0) rotateX(437deg) rotateY(207deg);
  transform: translate3d(25vw, 0, 0) rotateX(437deg) rotateY(207deg);
}

.popup.s--closed .popup__piece:nth-child(27) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-62vw, 0, 0) rotateX(322deg) rotateY(256deg);
  transform: translate3d(-62vw, 0, 0) rotateX(322deg) rotateY(256deg);
}

.popup .popup__piece:nth-child(28) {
  height: 20.66667%;
  width: 12.66667%;
}

.popup .popup__piece:nth-child(28) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(11vw, 57vh, -85px) rotateX(399deg) rotateY(388deg);
  transform: translate3d(11vw, 57vh, -85px) rotateX(399deg) rotateY(388deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 55% 100%);
  clip-path: polygon(0 0, 0 100%, 55% 100%);
}

.popup .popup__piece:nth-child(28) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(59vw, -27vh, 101px) rotateX(381deg) rotateY(206deg);
  transform: translate3d(59vw, -27vh, 101px) rotateX(381deg) rotateY(206deg);
  -webkit-clip-path: polygon(0 0, 55% 100%, 100% 0);
  clip-path: polygon(0 0, 55% 100%, 100% 0);
}

.popup .popup__piece:nth-child(28) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-37vw, 39vh, -410px) rotateX(307deg) rotateY(217deg);
  transform: translate3d(-37vw, 39vh, -410px) rotateX(307deg) rotateY(217deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 55% 100%);
  clip-path: polygon(100% 0, 100% 100%, 55% 100%);
}

.popup.s--closed .popup__piece:nth-child(28) {
  -webkit-transform: translate3d(0, 145vh, 0);
  transform: translate3d(0, 145vh, 0);
}

.popup.s--closed .popup__piece:nth-child(28) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(3vw, 0, 0) rotateX(448deg) rotateY(133deg);
  transform: translate3d(3vw, 0, 0) rotateX(448deg) rotateY(133deg);
}

.popup.s--closed .popup__piece:nth-child(28) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(54vw, 0, 0) rotateX(192deg) rotateY(298deg);
  transform: translate3d(54vw, 0, 0) rotateX(192deg) rotateY(298deg);
}

.popup.s--closed .popup__piece:nth-child(28) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(59vw, 0, 0) rotateX(417deg) rotateY(428deg);
  transform: translate3d(59vw, 0, 0) rotateX(417deg) rotateY(428deg);
}

.popup .popup__piece:nth-child(29) {
  height: 20.66667%;
  width: 17.66667%;
}

.popup .popup__piece:nth-child(29) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-19vw, -14vh, 381px) rotateX(285deg) rotateY(239deg);
  transform: translate3d(-19vw, -14vh, 381px) rotateX(285deg) rotateY(239deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 31% 100%);
  clip-path: polygon(0 0, 0 100%, 31% 100%);
}

.popup .popup__piece:nth-child(29) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-10vw, 8vh, 439px) rotateX(332deg) rotateY(232deg);
  transform: translate3d(-10vw, 8vh, 439px) rotateX(332deg) rotateY(232deg);
  -webkit-clip-path: polygon(0 0, 31% 100%, 100% 0);
  clip-path: polygon(0 0, 31% 100%, 100% 0);
}

.popup .popup__piece:nth-child(29) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-4vw, -57vh, 610px) rotateX(413deg) rotateY(211deg);
  transform: translate3d(-4vw, -57vh, 610px) rotateX(413deg) rotateY(211deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 31% 100%);
  clip-path: polygon(100% 0, 100% 100%, 31% 100%);
}

.popup.s--closed .popup__piece:nth-child(29) {
  -webkit-transform: translate3d(0, 101vh, 0);
  transform: translate3d(0, 101vh, 0);
}

.popup.s--closed .popup__piece:nth-child(29) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-74vw, 0, 0) rotateX(397deg) rotateY(222deg);
  transform: translate3d(-74vw, 0, 0) rotateX(397deg) rotateY(222deg);
}

.popup.s--closed .popup__piece:nth-child(29) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-70vw, 0, 0) rotateX(475deg) rotateY(237deg);
  transform: translate3d(-70vw, 0, 0) rotateX(475deg) rotateY(237deg);
}

.popup.s--closed .popup__piece:nth-child(29) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-22vw, 0, 0) rotateX(348deg) rotateY(225deg);
  transform: translate3d(-22vw, 0, 0) rotateX(348deg) rotateY(225deg);
}

.popup .popup__piece:nth-child(30) {
  height: 20.66667%;
  width: 21.66667%;
}

.popup .popup__piece:nth-child(30) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(45vw, 52vh, 297px) rotateX(328deg) rotateY(472deg);
  transform: translate3d(45vw, 52vh, 297px) rotateX(328deg) rotateY(472deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 70% 100%);
  clip-path: polygon(0 0, 0 100%, 70% 100%);
}

.popup .popup__piece:nth-child(30) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(9vw, -31vh, 528px) rotateX(390deg) rotateY(230deg);
  transform: translate3d(9vw, -31vh, 528px) rotateX(390deg) rotateY(230deg);
  -webkit-clip-path: polygon(0 0, 70% 100%, 100% 0);
  clip-path: polygon(0 0, 70% 100%, 100% 0);
}

.popup .popup__piece:nth-child(30) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(41vw, 42vh, -366px) rotateX(245deg) rotateY(231deg);
  transform: translate3d(41vw, 42vh, -366px) rotateX(245deg) rotateY(231deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 70% 100%);
  clip-path: polygon(100% 0, 100% 100%, 70% 100%);
}

.popup.s--closed .popup__piece:nth-child(30) {
  -webkit-transform: translate3d(0, 112vh, 0);
  transform: translate3d(0, 112vh, 0);
}

.popup.s--closed .popup__piece:nth-child(30) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-47vw, 0, 0) rotateX(386deg) rotateY(430deg);
  transform: translate3d(-47vw, 0, 0) rotateX(386deg) rotateY(430deg);
}

.popup.s--closed .popup__piece:nth-child(30) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-70vw, 0, 0) rotateX(413deg) rotateY(423deg);
  transform: translate3d(-70vw, 0, 0) rotateX(413deg) rotateY(423deg);
}

.popup.s--closed .popup__piece:nth-child(30) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(78vw, 0, 0) rotateX(257deg) rotateY(262deg);
  transform: translate3d(78vw, 0, 0) rotateX(257deg) rotateY(262deg);
}

.popup .popup__piece:nth-child(31) {
  height: 6.66667%;
  width: 19.66667%;
}

.popup .popup__piece:nth-child(31) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(14vw, 2vh, -300px) rotateX(144deg) rotateY(141deg);
  transform: translate3d(14vw, 2vh, -300px) rotateX(144deg) rotateY(141deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 53% 100%);
  clip-path: polygon(0 0, 0 100%, 53% 100%);
}

.popup .popup__piece:nth-child(31) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(52vw, -36vh, 502px) rotateX(313deg) rotateY(300deg);
  transform: translate3d(52vw, -36vh, 502px) rotateX(313deg) rotateY(300deg);
  -webkit-clip-path: polygon(0 0, 53% 100%, 100% 0);
  clip-path: polygon(0 0, 53% 100%, 100% 0);
}

.popup .popup__piece:nth-child(31) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-48vw, -6vh, 77px) rotateX(182deg) rotateY(304deg);
  transform: translate3d(-48vw, -6vh, 77px) rotateX(182deg) rotateY(304deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 53% 100%);
  clip-path: polygon(100% 0, 100% 100%, 53% 100%);
}

.popup.s--closed .popup__piece:nth-child(31) {
  -webkit-transform: translate3d(0, 141vh, 0);
  transform: translate3d(0, 141vh, 0);
}

.popup.s--closed .popup__piece:nth-child(31) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(0vw, 0, 0) rotateX(348deg) rotateY(161deg);
  transform: translate3d(0vw, 0, 0) rotateX(348deg) rotateY(161deg);
}

.popup.s--closed .popup__piece:nth-child(31) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(8vw, 0, 0) rotateX(370deg) rotateY(273deg);
  transform: translate3d(8vw, 0, 0) rotateX(370deg) rotateY(273deg);
}

.popup.s--closed .popup__piece:nth-child(31) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(10vw, 0, 0) rotateX(129deg) rotateY(138deg);
  transform: translate3d(10vw, 0, 0) rotateX(129deg) rotateY(138deg);
}

.popup .popup__piece:nth-child(32) {
  height: 6.66667%;
  width: 15.66667%;
}

.popup .popup__piece:nth-child(32) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(4vw, -6vh, -174px) rotateX(198deg) rotateY(252deg);
  transform: translate3d(4vw, -6vh, -174px) rotateX(198deg) rotateY(252deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 66% 100%);
  clip-path: polygon(0 0, 0 100%, 66% 100%);
}

.popup .popup__piece:nth-child(32) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(37vw, -9vh, -883px) rotateX(468deg) rotateY(416deg);
  transform: translate3d(37vw, -9vh, -883px) rotateX(468deg) rotateY(416deg);
  -webkit-clip-path: polygon(0 0, 66% 100%, 100% 0);
  clip-path: polygon(0 0, 66% 100%, 100% 0);
}

.popup .popup__piece:nth-child(32) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-21vw, 60vh, -268px) rotateX(143deg) rotateY(448deg);
  transform: translate3d(-21vw, 60vh, -268px) rotateX(143deg) rotateY(448deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 66% 100%);
  clip-path: polygon(100% 0, 100% 100%, 66% 100%);
}

.popup.s--closed .popup__piece:nth-child(32) {
  -webkit-transform: translate3d(0, 127vh, 0);
  transform: translate3d(0, 127vh, 0);
}

.popup.s--closed .popup__piece:nth-child(32) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-11vw, 0, 0) rotateX(440deg) rotateY(382deg);
  transform: translate3d(-11vw, 0, 0) rotateX(440deg) rotateY(382deg);
}

.popup.s--closed .popup__piece:nth-child(32) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(62vw, 0, 0) rotateX(317deg) rotateY(451deg);
  transform: translate3d(62vw, 0, 0) rotateX(317deg) rotateY(451deg);
}

.popup.s--closed .popup__piece:nth-child(32) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(68vw, 0, 0) rotateX(425deg) rotateY(157deg);
  transform: translate3d(68vw, 0, 0) rotateX(425deg) rotateY(157deg);
}

.popup .popup__piece:nth-child(33) {
  height: 6.66667%;
  width: 17.66667%;
}

.popup .popup__piece:nth-child(33) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(50vw, -40vh, 779px) rotateX(416deg) rotateY(455deg);
  transform: translate3d(50vw, -40vh, 779px) rotateX(416deg) rotateY(455deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 31% 100%);
  clip-path: polygon(0 0, 0 100%, 31% 100%);
}

.popup .popup__piece:nth-child(33) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-57vw, -29vh, -302px) rotateX(198deg) rotateY(465deg);
  transform: translate3d(-57vw, -29vh, -302px) rotateX(198deg) rotateY(465deg);
  -webkit-clip-path: polygon(0 0, 31% 100%, 100% 0);
  clip-path: polygon(0 0, 31% 100%, 100% 0);
}

.popup .popup__piece:nth-child(33) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(30vw, -39vh, 26px) rotateX(220deg) rotateY(271deg);
  transform: translate3d(30vw, -39vh, 26px) rotateX(220deg) rotateY(271deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 31% 100%);
  clip-path: polygon(100% 0, 100% 100%, 31% 100%);
}

.popup.s--closed .popup__piece:nth-child(33) {
  -webkit-transform: translate3d(0, 143vh, 0);
  transform: translate3d(0, 143vh, 0);
}

.popup.s--closed .popup__piece:nth-child(33) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-38vw, 0, 0) rotateX(129deg) rotateY(229deg);
  transform: translate3d(-38vw, 0, 0) rotateX(129deg) rotateY(229deg);
}

.popup.s--closed .popup__piece:nth-child(33) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(17vw, 0, 0) rotateX(231deg) rotateY(157deg);
  transform: translate3d(17vw, 0, 0) rotateX(231deg) rotateY(157deg);
}

.popup.s--closed .popup__piece:nth-child(33) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-42vw, 0, 0) rotateX(438deg) rotateY(129deg);
  transform: translate3d(-42vw, 0, 0) rotateX(438deg) rotateY(129deg);
}

.popup .popup__piece:nth-child(34) {
  height: 6.66667%;
  width: 13.66667%;
}

.popup .popup__piece:nth-child(34) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-23vw, 28vh, -681px) rotateX(192deg) rotateY(128deg);
  transform: translate3d(-23vw, 28vh, -681px) rotateX(192deg) rotateY(128deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 70% 100%);
  clip-path: polygon(0 0, 0 100%, 70% 100%);
}

.popup .popup__piece:nth-child(34) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(31vw, 3vh, -137px) rotateX(337deg) rotateY(376deg);
  transform: translate3d(31vw, 3vh, -137px) rotateX(337deg) rotateY(376deg);
  -webkit-clip-path: polygon(0 0, 70% 100%, 100% 0);
  clip-path: polygon(0 0, 70% 100%, 100% 0);
}

.popup .popup__piece:nth-child(34) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(35vw, -25vh, 370px) rotateX(424deg) rotateY(179deg);
  transform: translate3d(35vw, -25vh, 370px) rotateX(424deg) rotateY(179deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 70% 100%);
  clip-path: polygon(100% 0, 100% 100%, 70% 100%);
}

.popup.s--closed .popup__piece:nth-child(34) {
  -webkit-transform: translate3d(0, 108vh, 0);
  transform: translate3d(0, 108vh, 0);
}

.popup.s--closed .popup__piece:nth-child(34) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-77vw, 0, 0) rotateX(258deg) rotateY(277deg);
  transform: translate3d(-77vw, 0, 0) rotateX(258deg) rotateY(277deg);
}

.popup.s--closed .popup__piece:nth-child(34) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(38vw, 0, 0) rotateX(405deg) rotateY(135deg);
  transform: translate3d(38vw, 0, 0) rotateX(405deg) rotateY(135deg);
}

.popup.s--closed .popup__piece:nth-child(34) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-33vw, 0, 0) rotateX(450deg) rotateY(411deg);
  transform: translate3d(-33vw, 0, 0) rotateX(450deg) rotateY(411deg);
}

.popup .popup__piece:nth-child(35) {
  height: 6.66667%;
  width: 16.66667%;
}

.popup .popup__piece:nth-child(35) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(29vw, 32vh, 752px) rotateX(411deg) rotateY(476deg);
  transform: translate3d(29vw, 32vh, 752px) rotateX(411deg) rotateY(476deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 43% 100%);
  clip-path: polygon(0 0, 0 100%, 43% 100%);
}

.popup .popup__piece:nth-child(35) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(27vw, 45vh, 305px) rotateX(406deg) rotateY(190deg);
  transform: translate3d(27vw, 45vh, 305px) rotateX(406deg) rotateY(190deg);
  -webkit-clip-path: polygon(0 0, 43% 100%, 100% 0);
  clip-path: polygon(0 0, 43% 100%, 100% 0);
}

.popup .popup__piece:nth-child(35) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(28vw, -36vh, -92px) rotateX(445deg) rotateY(471deg);
  transform: translate3d(28vw, -36vh, -92px) rotateX(445deg) rotateY(471deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 43% 100%);
  clip-path: polygon(100% 0, 100% 100%, 43% 100%);
}

.popup.s--closed .popup__piece:nth-child(35) {
  -webkit-transform: translate3d(0, 123vh, 0);
  transform: translate3d(0, 123vh, 0);
}

.popup.s--closed .popup__piece:nth-child(35) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(-60vw, 0, 0) rotateX(357deg) rotateY(335deg);
  transform: translate3d(-60vw, 0, 0) rotateX(357deg) rotateY(335deg);
}

.popup.s--closed .popup__piece:nth-child(35) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(-50vw, 0, 0) rotateX(455deg) rotateY(387deg);
  transform: translate3d(-50vw, 0, 0) rotateX(455deg) rotateY(387deg);
}

.popup.s--closed .popup__piece:nth-child(35) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(18vw, 0, 0) rotateX(473deg) rotateY(387deg);
  transform: translate3d(18vw, 0, 0) rotateX(473deg) rotateY(387deg);
}

.popup .popup__piece:nth-child(36) {
  height: 6.66667%;
  width: 16.66667%;
}

.popup .popup__piece:nth-child(36) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(15vw, -45vh, -795px) rotateX(337deg) rotateY(313deg);
  transform: translate3d(15vw, -45vh, -795px) rotateX(337deg) rotateY(313deg);
  -webkit-clip-path: polygon(0 0, 0 100%, 33% 100%);
  clip-path: polygon(0 0, 0 100%, 33% 100%);
}

.popup .popup__piece:nth-child(36) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(43vw, -54vh, -747px) rotateX(383deg) rotateY(341deg);
  transform: translate3d(43vw, -54vh, -747px) rotateX(383deg) rotateY(341deg);
  -webkit-clip-path: polygon(0 0, 33% 100%, 100% 0);
  clip-path: polygon(0 0, 33% 100%, 100% 0);
}

.popup .popup__piece:nth-child(36) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(-5vw, -35vh, 188px) rotateX(140deg) rotateY(323deg);
  transform: translate3d(-5vw, -35vh, 188px) rotateX(140deg) rotateY(323deg);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 33% 100%);
  clip-path: polygon(100% 0, 100% 100%, 33% 100%);
}

.popup.s--closed .popup__piece:nth-child(36) {
  -webkit-transform: translate3d(0, 125vh, 0);
  transform: translate3d(0, 125vh, 0);
}

.popup.s--closed .popup__piece:nth-child(36) .popup__piece-inner:nth-child(1) {
  -webkit-transform: translate3d(62vw, 0, 0) rotateX(468deg) rotateY(291deg);
  transform: translate3d(62vw, 0, 0) rotateX(468deg) rotateY(291deg);
}

.popup.s--closed .popup__piece:nth-child(36) .popup__piece-inner:nth-child(2) {
  -webkit-transform: translate3d(57vw, 0, 0) rotateX(336deg) rotateY(292deg);
  transform: translate3d(57vw, 0, 0) rotateX(336deg) rotateY(292deg);
}

.popup.s--closed .popup__piece:nth-child(36) .popup__piece-inner:nth-child(3) {
  -webkit-transform: translate3d(36vw, 0, 0) rotateX(135deg) rotateY(408deg);
  transform: translate3d(36vw, 0, 0) rotateX(135deg) rotateY(408deg);
}

.popup__pieces {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.popup__piece {
  float: left;
  position: relative;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transition: -webkit-transform 0s 0s;
  transition: -webkit-transform 0s 0s;
  transition: transform 0s 0s;
  transition: transform 0s 0s, -webkit-transform 0s 0s;
}

.popup.s--closed .popup__piece {
  -webkit-transition: -webkit-transform 0.7s 0.1s cubic-bezier(0.69, -0.47, 0.97, 1.04);
  transition: -webkit-transform 0.7s 0.1s cubic-bezier(0.69, -0.47, 0.97, 1.04);
  transition: transform 0.7s 0.1s cubic-bezier(0.69, -0.47, 0.97, 1.04);
  transition: transform 0.7s 0.1s cubic-bezier(0.69, -0.47, 0.97, 1.04), -webkit-transform 0.7s 0.1s cubic-bezier(0.69, -0.47, 0.97, 1.04);
}

.popup__piece:after {
  content: "";
  display: table;
  clear: both;
}

.popup__piece-inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  -webkit-transition: opacity 0.35s 0.55s ease-in, -webkit-transform 0.7s 0.1s ease-out;
  transition: opacity 0.35s 0.55s ease-in, -webkit-transform 0.7s 0.1s ease-out;
  transition: opacity 0.35s 0.55s ease-in, transform 0.7s 0.1s ease-out;
  transition: opacity 0.35s 0.55s ease-in, transform 0.7s 0.1s ease-out, -webkit-transform 0.7s 0.1s ease-out;
}

.popup.s--active .popup__piece-inner {
  -webkit-transition: opacity 0.35s, -webkit-transform 0.7s ease-in-out;
  transition: opacity 0.35s, -webkit-transform 0.7s ease-in-out;
  transition: opacity 0.35s, transform 0.7s ease-in-out;
  transition: opacity 0.35s, transform 0.7s ease-in-out, -webkit-transform 0.7s ease-in-out;
  -webkit-transform: translate3d(0, 0, 0) rotateX(0) rotateY(0) !important;
  transform: translate3d(0, 0, 0) rotateX(0) rotateY(0) !important;
  opacity: 1;
}

The JavaScript to toggle the CSS classes when the popup is toggled.

var numOfPieces = 6 * 6;

var frag = document.createDocumentFragment();

function insertInnerPieces($el, innerPieces) {
  for (var i = 0; i < innerPieces; i++) {
    var $inner = document.createElement('div');
    $inner.classList.add('popup__piece-inner');
    $el.appendChild($inner);
  }
};

for (var i = 1; i <= numOfPieces; i++) {
  var $piece = document.createElement('div');
  $piece.classList.add('popup__piece');
  
  insertInnerPieces($piece, 3);
  frag.appendChild($piece);
}

document.querySelector('.popup__pieces').appendChild(frag);

var $popupsCont = document.querySelector('.popups-cont');
var $popup = document.querySelector('.popup');
var popupAT = 900;

document.querySelector('.popup-btn').addEventListener('click', function() {
  $popupsCont.classList.add('s--popup-active');
  $popup.classList.add('s--active');
});

function closeHandler() {
  $popupsCont.classList.remove('s--popup-active');
  $popup.classList.remove('s--active');
  $popup.classList.add('s--closed');
  
  setTimeout(function() {
    $popup.classList.remove('s--closed');
  }, popupAT);
}

document.querySelector('.popup__close').addEventListener('click', closeHandler);

document.querySelector('.popups-cont__overlay').addEventListener('click', closeHandler);

You Might Be Interested In:


2 thoughts on “JS / CSS3 Popup With Fragment Animations – Shattered Popup

  1. Josh Dunn

    Hi, I cannot get this to work? It’s really nice work and im trying to implement this in to my site. Ive added all the relevant code but nothing happens? Any advice?

    Reply
  2. PHI

    Hi, how can I use the same example on multiple buttons instead of one where each button on click would pop up a modal with its own distinct content? You can find the fiddle example here: https://jsfiddle.net/PHI_VIZ/mpsfmgz0/. “I would like to have distinct pop up content for each button.”

    Reply

Leave a Reply