A sunset icon that draws itself on hover and sinks the sun to the horizon at dusk, then rises again by day.
React + HTML
Darmowy
Stan
Więcej poniżej ↓
Wbudowane
Co dostajesz
Jasny i ciemnyUżywa kolorów twojego motywu
Pakiety…
Rozmiar kodu…
Sprawdzane przy każdej zmianie
Sprawdzanie typówTypeScript w trybie strict
Lint i formatowanieESLint · Prettier
Testy i buildZrzuty ekranu w jasnym i ciemnym
Audyt bezpieczeństwaBrak ostrzeżeń wysokich i krytycznych
Wiek pakietówKażda wersja publiczna od 7+ dni
CPU w spoczynkuPoniżej pół rdzenia w spoczynku, ≤ 30 fps
Kod
Coś nie tak z tym komponentem? Wyślij opinię ›
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.
Ładowanie…
Dobry do
Weather widgets, sunset times and day-to-night switches.
Jak to działa
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.
Jak używać
Podłącz style.css i script.js na swojej stronie, potem wklej kod HTML z index.html tam, gdzie ma się pojawić.