A simple jquery plugin for creating image comparison sliders. See live demo at http://kavyasukumar.com/apps/imgSlider/
Getting started
Run npm install img-slider
from the root directory of your application.
Include jQuery on your page if you don't already have it. You can use a CDN or the node_module
Include the following lines on your page
HTML decoration for your images goes like this
Include the following near the end of the page.
Initialization options
The following are the initialization options and their default values
initialPosition: .5 showInstruction: true instructiontext: "Click and Drag"
You can override the values during initialization by passing in the options like this
Dependencies
- Jquery