Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 493 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 493 Bytes

image-comparison-slider

A lightweight, before-after, image comparison slider thingy, written in pure javascript

<link rel="stylesheet" type="text/css" href="css/image-comparison-slider.css">

<div class="image-spliter">
    <div class="mover"></div>
    <img class="img-left" src="path/to/image1.jpg">
    <img class="img-right" src="path/to/image2.jpg">
</div>

<script src="js/image-comparison-slider.min.js"></script>

DEMO