一个完全响应式的滑块,用于比较前后图像的分级、修图和其他用途。适用于移动设备和流体容器!查看在线示例
安装
npm install image-compare-viewer --save
样式表可在以下路径找到:"node_modules/image-compare-viewer/src/styles/index.scss"或"node_modules/image-compare-viewer/dist/image-compare-viewer.min.css"
CDN
JavaScript
<script src="https://unpkg.com/image-compare-viewer/dist/image-compare-viewer.min.js"></script>
CSS
<link type="text/css" href="https://unpkg.com/image-compare-viewer/dist/image-compare-viewer.min.css">