A rotate icon that draws itself on hover and turns its photo a quarter turn to landscape when it rotates, and back when it goes upright.
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 ý ›
rotate-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
Rotate buttons in image editors, photo viewers, crop tools and document scanners.
Cách hoạt động
Hover it and the photo draws in, then the arrow. Rotate it and the photo turns a quarter turn with a small overshoot while the arrow spins once around.
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.