A Dependency-Free Before/After Image Slider With clip-path and a Range Input
Before/after sliders are everywhere: photo editors, retouching portfolios, image tools. Most tutorials reach for a library, but a good one fits in about 40 lines of HTML, CSS and JavaScript using clip-path and a range input.