A sunset icon that draws itself on hover and sinks the sun to the horizon at dusk, then rises again by day.
React + HTML
Kostenlos
Zustand
Mehr unten ↓
Eingebaut
Das bekommst du
Hell und dunkelNutzt deine Theme-Farben
Pakete…
Codegröße…
Bei jeder Änderung geprüft
TypprüfungTypeScript strict
Lint und FormatESLint · Prettier
Tests und BuildScreenshots in Hell und Dunkel
Sicherheits-AuditKeine hohen oder kritischen Hinweise
PaketalterJede Version seit 7+ Tagen öffentlich
CPU im LeerlaufUnter einem halben Kern in Ruhe, ≤ 30 fps
Code
Stimmt etwas nicht mit dieser Komponente? Feedback senden ›
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.
Lädt…
Gut für
Weather widgets, sunset times and day-to-night switches.
So funktioniert es
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.
So nutzt du es
Binde style.css und script.js in deine Seite ein und füge dann das Markup aus index.html dort ein, wo es hin soll.