See the Pen Image Comparison Slider for OpenSeadragon by Lev Panov (@leavittx) on CodePen.