A sunset icon that draws itself on hover and sinks the sun to the horizon at dusk, then rises again by day.
React + HTML
Gratis
Estado
Más abajo ↓
Incluido
Lo que obtienes
Claro y oscuroUsa los colores de tu tema
Paquetes…
Tamaño del código…
Revisado en cada cambio
Comprobación de tiposTypeScript estricto
Lint y formatoESLint · Prettier
Pruebas y buildCapturas en claro y oscuro
Auditoría de seguridadSin avisos altos ni críticos
Antigüedad de paquetesCada versión es pública desde hace 7+ días
CPU en reposoMenos de medio núcleo en reposo, ≤ 30 fps
Código
¿Algo raro con este componente? Enviar comentario ›
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.
Cargando…
Ideal para
Weather widgets, sunset times and day-to-night switches.
Cómo funciona
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.
Cómo usarlo
Enlaza style.css y script.js desde tu página y pega el marcado de index.html donde deba ir.