Before & after slider
Drag the glass handle to reveal the result.
UniversalUsed in production
Install
npx finepieces add before-afterOr with the shadcn CLI ›
npx shadcn@latest add https://finepieces.net/r/before-after.jsonSleep het knopje
example.tsx
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"]} />
);
}