İçeriğe geç
LibraryCSS
Onay Kutuları

Shooting Star Trail

A star shoots across the box leaving a glowing trail when checked.

Görüntülenme
0
Ücretsiz

Önizleme izole bir çerçevede çalışır — efekt sayfanın stillerini etkilemez.

Shooting Star Trail kaynak kodu

Üyelere açık
.fx-check-shooting-star { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; font-family: system-ui; }
.fx-check-shooting-star input { display: none; }
.fx-check-shooting-star-box { width: 36px; height: 36px; border-radius: 8px; background: #0f172a; border: 2px solid #334155; position: relative; overflow: hidden; transition: border-color .3s ease; }
.fx-check-shooting-star-head { position: absolute; top: 8px; left: 6px; width: 4px; height: 4px; border-radius: 50%; background: #fef3c7; opacity: 0; transition: opacity .2s ease; }
.fx-check-shooting-star-trail { position: absolute; top: 9px; left: 6px; width: 0; height: 2px; background: linear-gradient(to left, #fef3c7, transparent); border-radius: 2px; transition: width .2s ease; }
.fx-check-shooting-star input:checked + .fx-check-shooting-star-box { border-color: #fef3c7; }
.fx-check-shooting-star input:checked + .fx-check-shooting-star-box .fx-check-shooting-star-head { opacity: 1; animation: fx-ss-fly 1.5s linear infinite; }
.fx-check-shooting-star input:checked + .fx-check-shooting-star-box .fx-check-shooting-star-trail { animation: fx-ss-trail 1.5s linear infinite; }
@keyframes fx-ss-fly { 0% { top: 8px; left: 6px; } 100% { top: 28px; left: 30px; } }
@keyframes fx-ss-trail { 0% { top: 9px; left: 6px; width: 0; opacity: 0; } 30% { width: 12px; opacity: 1; } 100% { top: 29px; left: 30px; width: 0; opacity: 0; } }
.fx-check-shooting-star-label { color: #94a3b8; font-size: 14px; transition: color .25s ease; }
.fx-check-shooting-star input:checked ~ .fx-check-shooting-star-label { color: #fef3c7; }

Kalan 0 satırı görmek için ücretsiz üye ol

Tüm efektler ücretsiz. Üyelik yalnızca tam kaynağı, kopyalamayı ve tarayıcı içi editörü açar.

Bu efektte bir sorun mu var, yoksa daha iyisini mi yazdın? Düzeltme gönder — onaylanırsa puan kazanırsın.

Sorun bildir veya düzelt

Katkıda bulunanlar

LibraryCSSEfekti eklediKurucu
#animation#gradient#border

Shooting Star Trail nasıl kullanılır?

  1. 1. HTML parçasını sayfanda kullanmak istediğin yere yapıştır.
  2. 2. CSS bloğunu stil dosyana veya bir <style> etiketine ekle.
  3. 3. Renkleri ve süreleri kendi tasarımına göre değiştir — bağımlılık yok, saf CSS.

Onay Kutuları kategorisindeki tüm efektler gibi bu efekt de tamamen ücretsizdir; ticari projelerde de kullanabilirsin. Kütüphanenin tamamı için Onay Kutuları koleksiyonuna göz at.

Benzer Onay Kutuları efektleri

Tümü