A portrait photo card split by a divider with a round grip: drag it, tap a spot or use the arrow keys to compare the flat before with the graded after.
React + HTML
無料
下にさらに表示 ↓
組み込み済み
付属するもの
ライトとダークテーマのカラーを使用
パッケージ…
コードサイズ…
バッテリーに優しい30 fps、静止時はアイドル
非表示時は停止画面外や別タブのとき
モーションの軽減設定している人には穏やかに
変更のたびに検証
型チェックTypeScript の strict モード
Lint とフォーマットESLint · Prettier
テストとビルドライトとダークのスクリーンショット
セキュリティ監査重大・高リスクの脆弱性なし
パッケージの公開期間すべてのバージョンが7日以上前に公開
アイドル時の CPU静止時は半コア未満、30 fps 以下
コード
このコンポーネントに気になる点がありますか? フィードバックを送る ›
before-after-cardHTML
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.
読み込み中…
こんな用途に
Photo edits, presets, retouching, renovations and any change you want people to compare side by side.
仕組み
Drag the grip, tap the photo or use the arrow keys to move the divider; on view it sweeps once to show it can.