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
Miễn phí
Trạng thái
Xem thêm bên dưới ↓
Tích hợp sẵn
Bạn nhận được
Sáng và tốiDùng màu theo giao diện của bạn
Package…
Dung lượng mã…
Được kiểm tra ở mỗi thay đổi
Kiểm tra kiểuTypeScript strict
Lint và định dạngESLint · Prettier
Test và buildẢnh chụp sáng và tối
Kiểm tra bảo mậtKhông có cảnh báo mức cao hoặc nghiêm trọng
Tuổi của packageMọi phiên bản công khai từ 7 ngày trở lên
CPU khi nghỉDưới nửa nhân khi đứng yên, ≤ 30 fps
Mã nguồn
Component này có gì không ổn? Gửi góp ý ›
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.
Đang tải…
Phù hợp cho
Sunrise times in weather apps, morning alarms and wake-up or "good morning" buttons.
Cách hoạt động
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.
Cách dùng
Liên kết style.css và script.js từ trang của bạn, rồi dán đoạn markup từ index.html vào chỗ bạn muốn.