<div id="container1">
<img src="sample-before.png">
<img src="sample-after.png">
</div>
$(window).load(function() {
$("#container1").twentytwenty();
});
![【插件库】TwentyTwenty — 视觉差异工具 擦黑板效果插图 【插件库】TwentyTwenty — 视觉差异工具 擦黑板效果插图](http://images.lxcss.com//2022/04/20220421130653667.png?imageView2/0/format/webp/q/75)
石家庄栗信科技有限公司前端外包
<div id="container1">
<img src="sample-before.png">
<img src="sample-after.png">
</div>
$(window).load(function() {
$("#container1").twentytwenty();
});