A smile icon that draws itself on hover and breaks into a smile with happy eyes when it is on, and goes back to a neutral face when it is off.
React + HTML
Gratis
Status
Selengkapnya di bawah ↓
Sudah termasuk
Yang Anda dapat
Terang dan gelapMemakai warna tema Anda
Paket…
Ukuran kode…
Dicek di setiap perubahan
Pengecekan tipeTypeScript strict
Lint dan formatESLint · Prettier
Tes dan buildTangkapan layar terang dan gelap
Audit keamananTanpa advisori tinggi atau kritis
Usia paketSetiap versi sudah publik 7+ hari
CPU saat diamDi bawah setengah core saat diam, ≤ 30 fps
Kode
Ada yang janggal dengan komponen ini? Kirim masukan ›
smile-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.
Memuat…
Cocok untuk
Emoji reaction buttons, feedback and mood pickers, satisfaction surveys and chat reactions.
Cara kerjanya
Hover it and the face draws in, the eyes pop and the mouth draws. Turn it on and the face bounces a little, the flat mouth turns into a smile and the eyes squash into happy arcs; turn it off and it goes back to neutral.
Cara memakai
Tautkan style.css dan script.js dari halaman Anda, lalu tempel markup dari index.html di tempat yang diinginkan.