Skip to content

A simple, lightweight way to add an image comparison tool to your website/app

Notifications You must be signed in to change notification settings

alexbrown/image-dragger

Repository files navigation

Image Dragger

A simple, lightweight way to add an image comparison tool to your website/app

Installation

npm i image-dragger

Usage

import { ImageDragger } from 'image-dragger';

ImageDragger.create("#car", {
  leftImage: "./demo/images/car.jpg",
  rightImage: "./demo/images/car-bg-removed.png",
});

Parameters

Parameter Description
selector Selector of where you would like to mount the slider
options.leftImage URL of the image you would like to be on the left side of the slider
options.rightImage URL of the image you would like to be on the right side of the slider

About

A simple, lightweight way to add an image comparison tool to your website/app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published