Scroll Animation
Scroll Animation includes separate reveal, parallax, progress and smooth-scroll helpers. Use ScrollReveal on its own when you only need content to enter as the reader scrolls.
Practical React example
Reveal three process cards on a marketing page while preserving native scrolling. The example removes blur, uses a short duration and triggers when some of each card enters the viewport.
Before you copy and paste
Copy scroll-reveal.tsx, ease and cn from the returned files. This example needs React, Motion and the utility dependencies, but does not need the Lenis provider. Install Lenis if you choose the separate smooth-scroll helpers.
Listed package dependencies: clsx, lenis, motion, react, tailwind-merge.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Reveal a short process without changing scrolling behavior
'use client';
import { ScrollReveal } from '@/components/motion/scroll-reveal';
const steps = [
{ title: 'Choose a pattern', copy: 'Start with the interaction your reader needs.' },
{ title: 'Adapt the details', copy: 'Match the type, spacing and content to your product.' },
{ title: 'Check the result', copy: 'Try narrow screens, keyboard navigation and reduced motion.' },
];
export function ProcessSteps() {
return (
<section aria-label="Build process" className="grid gap-6 md:grid-cols-3">
{steps.map((step) => (
<ScrollReveal key={step.title} y={12} blur={0} duration={0.35} amount="some" once>
<article className="rounded-xl border p-6">
<h3>{step.title}</h3>
<p>{step.copy}</p>
</article>
</ScrollReveal>
))}
</section>
);
}
Each card has its own intersection observer target. once keeps cards visible after their first reveal. amount="some" avoids requiring an entire tall card to fit inside the viewport. Keep critical headings and primary navigation outside animated wrappers.
Customization
- y / blur / duration / delay
- y and blur use pixels; duration and delay use seconds. This version does not clamp blur despite the source comment, so choose a small non-negative value explicitly.
- once / amount
- once defaults to true. amount accepts some, all or a threshold from zero to one. all can leave tall content unrevealed when it never fits inside the viewport.
- root
- Pass a ref to a real scroll container for contained scrolling. Omit it to observe the browser viewport. ScrollReveal does not require SmoothScroll context.
Integration notes
- Reduced motion removes translation and blur, but this source retains an opacity transition and the supplied duration and delay. For a fully static view, use plain content or explicitly adapt those transitions.
- Content initially has zero opacity until the observer reports it visible. Verify hydration, JavaScript failure and printing in your application; do not put the only copy of essential navigation behind the effect.
- Reveal, smooth scrolling and scroll progress solve different problems. Add only the helpers you need, and check keyboard navigation, anchors and nested scroll regions before adding a smooth-scroll provider.
Component source: beUI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.
Give your agent taste.
The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.
All components are free. Sign up only to connect MCP.