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 严格模式
代码检查与格式化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.