İçeriğe geç
LibraryCSS
Anahtarlar

Torch Flame

Torch flame flickers to life when the toggle ignites.

Görüntülenme
0
Ücretsiz

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

Torch Flame kaynak kodu

Üyelere açık
.fx-toggle-torch-flame{display:inline-block;cursor:pointer}
.fx-toggle-torch-flame input{display:none}
.fx-toggle-torch-flame-track{display:block;width:68px;height:34px;border-radius:34px;background:#1c1917;position:relative;overflow:hidden;transition:background .4s ease}
.fx-toggle-torch-flame-flame{position:absolute;top:50%;left:17px;width:8px;height:14px;background:radial-gradient(ellipse at center bottom,#fef3c7,#f97316 50%,#dc2626);border-radius:50% 50% 50% 50/70% 70% 30% 30%;transform:translate(-50%,-30%) scaleY(0);opacity:0;transition:transform .4s ease,opacity .3s ease,left .4s ease}
.fx-toggle-torch-flame input:not(:checked) + .fx-toggle-torch-flame-track .fx-toggle-torch-flame-flame{animation:fx-tf-flicker .3s ease-in-out infinite alternate}
@keyframes fx-tf-flicker{0%{transform:translate(-50%,-30%) scaleY(1) scaleX(1)}100%{transform:translate(-50%,-30%) scaleY(1.15) scaleX(.9)}}
.fx-toggle-torch-flame-knob{position:absolute;top:3px;left:3px;width:28px;height:28px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#57534e,#1c1917);transition:transform .4s cubic-bezier(.65,0,.35,1),background .4s ease}
.fx-toggle-torch-flame input:checked + .fx-toggle-torch-flame-track{background:#451a03}
.fx-toggle-torch-flame input:checked + .fx-toggle-torch-flame-track .fx-toggle-torch-flame-flame{transform:translate(-50%,-30%) scaleY(1);opacity:1;left:51px}
.fx-toggle-torch-flame input:checked + .fx-toggle-torch-flame-track .fx-toggle-torch-flame-knob{transform:translateX(34px);background:radial-gradient(circle at 35% 35%,#fef3c7,#f97316 60%,#9a3412);box-shadow:0 0 14px rgba(249,115,22,.7)}

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#transform#shadow

Torch Flame 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.

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

Benzer Anahtarlar efektleri

Tümü