轻量级的JavaScript图片比较滑块,比较之前和之后的图片用鼠标移动。调用方法let slider = new sliderBeforeAfter({ class_name: 'slider', src: 'before.jpg', src2: 'after.jpg' });定义图片的大小let slider = new sliderBeforeAfter({ class_name: 'slider', width: '500px', height: '4000px' });设置边框样式let slider = new sliderBeforeAfter({ class_name: 'slider', border_width: '2px', border_color: '#fff' });
preview Points Download 6毛Download Share Download
未经允许不得转载: ICode联盟 » Plugin Special Effects » JavaScript图片左右拖拽对比