• Public
  • Public/Protected
  • All

JuxtaposeJS is a simple, open source tool for creating before/after image sliders. Just provide two image URLs and Juxtapose will do the rest of the work for you. Below are instructions for implementing Juxtapose with HTML and Javascript but we also have a tool that lets you make a slider without needing to know any code.

Used by the ImageCompare widget.


Type Aliases

SlideMode: "horizontal" | "vertical"

The direction in which the slider should move.


sliders: JXSlider[]

A list of instantiated sliders created on the current page. Can be used to access instances when you did not save them.

Generated using TypeDoc