filipz

Explorations with GSAP and Scroll Trigger

Component 109

About

Here is Explorations with GSAP and Scroll Trigger component

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Explorations with GSAP and Scroll Trigger to your project and fits it to your theme.

Code

How Explorations with GSAP and Scroll Trigger is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import NebulaCube from "@/components/ui/explorations-with-gsap-and-scroll-trigger";

const settings = {
  PARTICLE_COUNT: 2000,
  PARTICLE_MOUSE_INFLUENCE: 0.0001,
  PARTICLE_REPULSION_STRENGTH: 0.00008,
  PARTICLE_CONNECTION_DISTANCE: 0.5,
  PARTICLE_DEPTH_RANGE: 12,
  scrollProgress: 0.5,
};

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="h-screen w-screen">
      <NebulaCube {...s} />
    </div>
  );
}

Dependencies

More by filipz

View all
  • Set of Animations 4

    Set of Animations 4

    197
  •  Circle Animations Collection 3

    Circle Animations Collection 3

    184
  • Circle Animations Collection

    Circle Animations Collection

    70
  • Menu Animations

    Menu Animations

    57