Skip to content

About

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

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages