Scroll Reveal(023)

Progressive word-by-word opacity and blur reveal anchored to scroll position.

Scroll
Requires:gsap
Loading…

Installation

$npx kibo add scroll-reveal

Usage

1import { ScrollReveal } from "@/components/kibo/scroll-reveal/component";
2
3export default function Example() {
4 return (
5 <ScrollReveal />
6 );
7}

Props Reference

PropTypeDefaultDescription
childrenReactNode-Child elements or content to render inside the component.
scrollContainerRefRefObject<HTMLElement | null>-Optional RefObject to a scrollable container element.
enableBlurbooleantrueWhether to enable progressive blur-to-sharp animation.
baseOpacitynumber0.1Controls the base opacity for the component animation.
baseRotationnumber3Controls the base rotation for the component animation.
blurStrengthnumber4Peak blur amount in pixels.
containerClassNamestring''Additional CSS classes for the outer wrapper container.
textClassNamestring''Additional CSS classes applied directly to the text elements.
scrollStartstring'top 90%'ScrollTrigger starting threshold string (e.g., 'top 85%').
rotationEndstring'top 40%'Controls the rotation end for the component animation.
wordAnimationEndstring'top 40%'Controls the word animation end for the component animation.