Показать сообщение отдельно
  #20 (permalink)  
Старый 16.12.2023, 14:13
BSI BSI вне форума
Аспирант
Отправить личное сообщение для BSI Посмотреть профиль Найти все сообщения от BSI
 
Регистрация: 01.06.2013
Сообщений: 48

Похоже получилось. Не знаю правильно ли.
<!DOCTYPE html>
<head>
  <meta charset="UTF-8">
  <style>

.container {
  padding: 10px 80px;
  width: 100%;
  margin: 0 auto;
  max-width: 1064px;
}

.image-stack::after {
  content: " ";
  display: table;
  clear: both;
}

.karas_P1 {
  float: left;
  z-index: 3;
}

.kar_L1 {
  float: left;
  z-index: 3;
}

.kar_P2 {
  float: left;
  z-index: 3;
}

.kar_L2 {
  float: left;
  z-index: 3;
}

.kar_P3 {
  float: left;
  z-index: 3;
}

.kar_L3 {
  float: left;
  z-index: 3;
}

.kar_P4 {
  float: left;
  z-index: 3;
}

.kar_L4 {
  float: left;
  z-index: 3;
}

.karas_P1 {
  grid-row: 1;
  grid-column: 1;
  transform: scale(0.5);
  position: relative;
  margin-top: 1em;
  margin-left: 2em;
  animation: Karas_P1Animation 1.5s 2s forwards;
  opacity: 0;
}
@keyframes Karas_P1Animation {
  0% {
    opacity: 1;
  }
  99% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.kar_L1 {
  grid-row: 1;
  grid-column: 1;
  transform: scale(0.5);
  position: relative;
  margin-top: 1em;
  margin-left: -1em;
  animation: Kar_L1Animation 1.5s 3.5s forwards;
  opacity: 0;
}
@keyframes Kar_L1Animation {
  0% {
    opacity: 1;
  }
  99% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.kar_P2 {
  grid-row: 1;
  grid-column: 1;
  transform: scale(0.5);
  position: relative;
  margin-top: 1em;
  margin-left: 0em;
  animation: Kar_P2Animation 1.5s 5s forwards;
  opacity: 0;
}
@keyframes Kar_P2Animation {
  0% {
    opacity: 1;
  }
  99% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.kar_L2 {
  grid-row: 1;
  grid-column: 1;
  transform: scale(0.5);
  position: relative;
  margin-top: -7em;
  margin-left: 42em;
  animation: Kar_L3Animation 1.5s 6.5s forwards;
  opacity: 0;
}
@keyframes Kar_L3Animation {
  0% {
    opacity: 1;
  }
  99% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.kar_P3 {
  grid-row: 1;
  grid-column: 1;
  transform: scale(0.5);
  position: relative;
  margin-top: -2em;
  margin-left: 4em;
  animation: Kar_P3Animation 1.2s 7.5s forwards;
  opacity: 0;
}
@keyframes Kar_P3Animation {
  0% {
    opacity: 1;
  }
  99% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.kar_L3 {
  grid-row: 1;
  grid-column: 1;
  transform: scale(0.5);
  position: relative;
  margin-top: -2em;
  margin-left: 2em;
  animation: Kar_L3Animation 1.5s 9.5s forwards;
  opacity: 0;
}
@keyframes Kar_L3Animation {
  0% {
    opacity: 1;
  }
  99% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.kar_P4 {
  grid-row: 1;
  grid-column: 1;
  transform: scale(0.5);
  position: relative;
  margin-top: -2em;
  margin-left: 3em;
  animation: Kar_P4Animation 1.5s 12s forwards;
  opacity: 0;
}
@keyframes Kar_P4Animation {
  0% {
    opacity: 1;
  }
  99% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.kar_L4 {
  grid-row: 1;
  grid-column: 1;
  transform: scale(0.5);
  position: relative;
  margin-top: -6em;
  margin-left: 45em;
  animation: Kar_L4Animation 1.5s 15.5s forwards;
  opacity: 0;
}
@keyframes Kar_L4Animation {
  0% {
    opacity: 1;
  }
  99% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}


</style>
</head>
<body>

<div class="container">
  <div class="image-stack">

    <div class="karas_P1">
      <img src="https://habrastorage.org/webt/ok/qs/0_/okqs0_lq8q7x6canndrw_mu2uy8.gif" alt="">
    </div>

    <div class="kar_L1">
      <img src="https://habrastorage.org/webt/v_/r-/qh/v_r-qhfdeje2cnike9x78ygkdne.gif" alt="">
    </div>

    <div class="kar_P2">
      <img src="https://habrastorage.org/webt/ok/qs/0_/okqs0_lq8q7x6canndrw_mu2uy8.gif" alt="">
    </div>

    <div class="kar_L2">
      <img src="https://habrastorage.org/webt/v_/r-/qh/v_r-qhfdeje2cnike9x78ygkdne.gif" alt="">
    </div>

    <div class="kar_P3">
      <img src="https://habrastorage.org/webt/ok/qs/0_/okqs0_lq8q7x6canndrw_mu2uy8.gif" alt="">
    </div>

    <div class="kar_L3">
      <img src="https://habrastorage.org/webt/v_/r-/qh/v_r-qhfdeje2cnike9x78ygkdne.gif" alt="">
    </div>

    <div class="kar_P4">
      <img src="https://habrastorage.org/webt/ok/qs/0_/okqs0_lq8q7x6canndrw_mu2uy8.gif" alt="">
    </div>

    <div class="kar_L4">
      <img src="https://habrastorage.org/webt/v_/r-/qh/v_r-qhfdeje2cnike9x78ygkdne.gif" alt="">
    </div>
</body>
</html>
Ответить с цитированием