A volume icon that draws itself on hover and pulls its sound waves into the speaker as an X draws in when sound is muted, and back when it is on.
React + HTML
無料
状態
下にさらに表示 ↓
組み込み済み
付属するもの
ライトとダークテーマのカラーを使用
パッケージ…
コードサイズ…
変更のたびに検証
型チェックTypeScript の strict モード
Lint とフォーマットESLint · Prettier
テストとビルドライトとダークのスクリーンショット
セキュリティ監査重大・高リスクの脆弱性なし
パッケージの公開期間すべてのバージョンが7日以上前に公開
アイドル時の CPU静止時は半コア未満、30 fps 以下
コード
このコンポーネントに気になる点がありますか? フィードバックを送る ›
volume-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.
読み込み中…
こんな用途に
Mute buttons on video and audio players, calls and sound settings.
仕組み
Hover it and the speaker draws in, then the waves one after another. Mute it and the outer wave, then the inner one, shrink back into the speaker as an X draws in their place.