Before & after slider

Drag the glass handle to reveal the result.

UniversalUsed in production
Install
npx finepieces add before-after
Or with the shadcn CLI ›
npx shadcn@latest add https://finepieces.net/r/before-after.json

Sleep het knopje

import { BeforeAfter } from "@/components/fine-pieces/before-after";

export default function Example() {
  return (
    <BeforeAfter before={"/images/portret-3.webp"} after={"/images/portret-3.webp"} fadeBefore labels={["before", "after"]} />
  );
}