Pens

DNA Helix Particle Wave Loader

CSS Animation bởi acmatvjrus
Mở Studio
<div class="dna-box">
  <div class="dna-container">
    <div class="strand strand-1"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></div>
    <div class="strand strand-2"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></div>
  </div>
  <h3>DNA SYNCHRONIZING</h3>
</div>
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #061c14;
  font-family: sans-serif;
}
.dna-box {
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(16, 163, 122, 0.2);
}
.dna-container {
  display: flex;
  justify-content: center;
  gap: 14px;
  height: 90px;
  align-items: center;
  margin-bottom: 2rem;
}
.strand {
  display: flex;
  gap: 12px;
}
.strand span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  animation: dnaFloat 1.8s ease-in-out infinite;
}
.strand-1 span {
  background: #10a37a;
  box-shadow: 0 0 12px #10a37a;
}
.strand-2 span {
  background: #34d399;
  box-shadow: 0 0 12px #34d399;
  animation-delay: -0.9s !important;
}
.strand span:nth-child(1) { animation-delay: 0.1s; }
.strand span:nth-child(2) { animation-delay: 0.2s; }
.strand span:nth-child(3) { animation-delay: 0.3s; }
.strand span:nth-child(4) { animation-delay: 0.4s; }
.strand span:nth-child(5) { animation-delay: 0.5s; }
.strand span:nth-child(6) { animation-delay: 0.6s; }
.strand span:nth-child(7) { animation-delay: 0.7s; }
.strand span:nth-child(8) { animation-delay: 0.8s; }

@keyframes dnaFloat {
  0%, 100% { transform: translateY(-35px) scale(0.65); opacity: 0.4; }
  50% { transform: translateY(35px) scale(1.2); opacity: 1; }
}
.dna-box h3 {
  margin: 0;
  color: #6ee7b7;
  font-size: 14px;
  letter-spacing: 2px;
}
// DNA Sine wave animation
Đã sao chép vào bộ nhớ tạm!