A sunset icon that draws itself on hover and sinks the sun to the horizon at dusk, then rises again by day.
React + HTML
Безкоштовно
Стан
Більше нижче ↓
Вбудовано
Що ви отримуєте
Світла й темнаВикористовує кольори вашої теми
Пакети…
Розмір коду…
Перевіряється після кожної зміни
Перевірка типівСтрогий TypeScript
Лінтер і форматESLint · Prettier
Тести й збіркаСкриншоти у світлій і темній темах
Аудит безпекиБез високих чи критичних загроз
Вік пакетівКожна версія публічна 7+ днів
Процесор у спокоїМенше половини ядра у спокої, ≤ 30 fps
Код
Щось не так із цим компонентом? Надіслати відгук ›
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.
Завантаження…
Підходить для
Weather widgets, sunset times and day-to-night switches.
Як це працює
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.
Як користуватися
Підключіть style.css і script.js на своїй сторінці, потім вставте розмітку з index.html туди, куди потрібно.