JSPM

@wsgrah/scrolly-three

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q21024F
  • License MIT

React Three Fiber scroll-driven 3D animation components

Package Exports

  • @wsgrah/scrolly-three

Readme

@wsgrah/scrolly-three

React Three Fiber scroll-driven 3D animation components.

Install

pnpm add @wsgrah/scrolly-three three @react-three/fiber @react-three/drei gsap @gsap/react react react-dom

Usage

import { CinematicScroll } from '@wsgrah/scrolly-three';

export function Gallery() {
  return <CinematicScroll images={['/img/one.jpg', '/img/two.jpg', '/img/three.jpg']} />;
}

Components

  • CinematicScroll - rotating image carousel synced to scroll progress.

Hooks

  • useScrollProgress - helper for reading scroll progress.

Notes

  • Uses WebGL; ensure the component runs on the client.
  • Provide your own layout styles around the canvas container.

License

MIT