About
A scroll animation that rotates in 3d on scroll. Perfect for hero or marketing sections.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Container Scroll Animation to your project and fits it to your theme.
Code
How Container Scroll Animation is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import React from "react";
import { ContainerScroll } from "@/components/ui/container-scroll-animation";
import Image from "next/image";
export function HeroScrollDemo() {
return (
<div className="flex flex-col overflow-hidden pb-[500px] pt-[1000px]">
<ContainerScroll
titleComponent={
<>
<h1 className="text-4xl font-semibold text-black dark:text-white">
Unleash the power of <br />
<span className="text-4xl md:text-[6rem] font-bold mt-1 leading-none">
Scroll Animations
</span>
</h1>
</>
}
>
<Image
src={`https://ui.aceternity.com/_next/image?url=%2Flinear.webp&w=3840&q=75`}
alt="hero"
height={720}
width={1400}
className="mx-auto rounded-2xl object-cover h-full object-left-top"
draggable={false}
/>
</ContainerScroll>
</div>
);
}
















