Search...
K

Sticky Scroll

Sticky scroll with GSAP ScrollTrigger.

Documentation

pnpm dlx @t7blocks/cli add sticky-scroll

Usage

import { StickyScroll } from "@/components/T7blocks/StickyScroll";

export default function Home() {
  return (
    <main>
      <StickyScroll />
    </main>
  );
}

Properties

PropertyTypeDefaultDescription
imagesStickyImage[]DEFAULT_IMAGESArray of images to display in the sticky sections
enableScalebooleanfalseWhether to enable scaling animation on the images
titlestring"ScrollTrigger"Title text for the hero section
fontClassNamestringinstrument.classNameCustom font class for the title

Inspiration

This component is inspired by Sticky Scroll by MadeByKing

Related resources

Scroll Image Pass