İçeriğe geç
LibraryCSS
Onay Kutuları

Pixel Square Check

An 8-bit pixel art square that draws a checkmark when checked.

Görüntülenme
0
Ücretsiz

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

Pixel Square Check kaynak kodu

Üyelere açık
.fx-check-pixel-square { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; font-family: system-ui; }
.fx-check-pixel-square input { display: none; }
.fx-check-pixel-square-box { width: 32px; height: 32px; border: 3px solid #475569; border-radius: 0; background: #0f172a; display: grid; place-items: center; transition: border-color .2s steps(2); image-rendering: pixelated; }
.fx-check-pixel-square-grid { display: grid; grid-template-columns: repeat(4, 4px); grid-template-rows: repeat(3, 4px); gap: 1px; }
.fx-check-pixel-square-grid span { background: transparent; transition: background .15s steps(2); }
.fx-check-pixel-square-grid span:nth-child(3),
.fx-check-pixel-square-grid span:nth-child(5),
.fx-check-pixel-square-grid span:nth-child(6),
.fx-check-pixel-square-grid span:nth-child(9) { }
.fx-check-pixel-square input:checked + .fx-check-pixel-square-box { border-color: #22d3ee; }
.fx-check-pixel-square input:checked + .fx-check-pixel-square-box .fx-check-pixel-square-grid span:nth-child(6),
.fx-check-pixel-square input:checked + .fx-check-pixel-square-box .fx-check-pixel-square-grid span:nth-child(7),
.fx-check-pixel-square input:checked + .fx-check-pixel-square-box .fx-check-pixel-square-grid span:nth-child(10),
.fx-check-pixel-square input:checked + .fx-check-pixel-square-box .fx-check-pixel-square-grid span:nth-child(11) { background: #22d3ee; }
.fx-check-pixel-square-label { color: #e2e8f0; font-size: 14px; }

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
#border

Pixel Square Check 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ü