A sunrise icon that draws itself on hover and raises a big sun with its rays over the horizon when the sun is up.
React + HTML
Free
State
More below ↓
Built in
What you get
Light and darkUses your theme colors
Packages…
Code size…
Checked on every change
Type checkTypeScript strict
Lint and formatESLint · Prettier
Tests and buildLight and dark screenshots
Security auditNo high or critical advisories
Package ageEvery version public 7+ days
Idle CPUUnder half a core at rest, ≤ 30 fps
Code
Something off with this component? Send feedback ›
sunrise-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.
Loading…
Good for
Sunrise times in weather apps, morning alarms and wake-up or "good morning" buttons.
How it works
Hover it and the horizon draws in, then the low sun and its up arrow. When the sun is up the arrow flies away, a big sun rises over the horizon and its rays pop out one by one. Set it and the sun sinks back.
How to use
Link style.css and script.js from your page, then paste the markup from index.html where it should go.