A sunset icon that draws itself on hover and sinks the sun to the horizon at dusk, then rises again by day.
React + HTML
Ücretsiz
Durum
Devamı aşağıda ↓
Yerleşik
Neler alırsınız
Açık ve koyuTema renklerinizi kullanır
Paketler…
Kod boyutu…
Her değişiklikte kontrol edilir
Tür denetimiKatı TypeScript
Lint ve biçimESLint · Prettier
Testler ve derlemeAçık ve koyu ekran görüntüleri
Güvenlik denetimiYüksek veya kritik uyarı yok
Paket yaşıHer sürüm 7+ gündür herkese açık
Boşta CPUDururken yarım çekirdekten az, ≤ 30 fps
Kod
Bu bileşende bir sorun mu var? Geri bildirim gönder ›
sunset-iconHTML
index.htmlpageThe markup to copy, between the copy-from-here comments, on a demo page.
style.cssstyleThe styles: copy them into your CSS.
script.jsscriptThe behavior: load it after the markup.
index.html
The markup to copy, between the copy-from-here comments, on a demo page.
Yükleniyor…
Şunlar için uygun
Weather widgets, sunset times and day-to-night switches.
Nasıl çalışır
Hover it and the horizon and sun draw in and the rays grow out. Turn set on and the rays pull in, the sun sinks to a sliver and a down arrow draws in above it.
Nasıl kullanılır
Sayfanıza şu dosyaları bağlayın: style.css ve script.js. Ardından index.html'deki markup'ı olması gereken yere yapıştırın.