Photo that shrinks into a frame

Starts full width; as you scroll it becomes a framed photo with text beside it.

UniversalNew
Install
npx finepieces add shrinking-photo
Or with the shadcn CLI ›
npx shadcn@latest add https://finepieces.net/r/shrinking-photo.json

Scroll inside the panel

import { ShrinkingPhoto } from "@/components/fine-pieces/shrinking-photo";

export default function Example() {
  return (
    <ShrinkingPhoto image={"/images/interieur-2.webp"} title="Homes with light in every room." text="Studio Nord designs homes on the coast." pinHeight="var(--pin-h,100svh)" />
  );
}