Pens

Cosmic Galaxy Nebula Button

UI Component bởi acmatvjrus
Mở Studio
<div class="btn-stage">
  <button class="cosmic-btn">
    <span class="stars"></span>
    <span class="btn-text">EXPLORE UNIVERSE</span>
  </button>
</div>
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #02040a;
  font-family: "Inter", sans-serif;
}
.cosmic-btn {
  position: relative;
  padding: 18px 44px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(135deg, #059669, #0284c7, #7c3aed);
  background-size: 200% 200%;
  animation: cosmicFlow 5s ease infinite;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(5, 150, 105, 0.5);
  transition: all 0.3s ease;
}
.cosmic-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.7);
}
@keyframes cosmicFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
// Cosmic particle triggers
Đã sao chép vào bộ nhớ tạm!