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
Props Reference
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | - | Child elements or content to render inside the component. |
scrollContainerRef | RefObject<HTMLElement | null> | - | Optional RefObject to a scrollable container element. |
enableBlur | boolean | true | Whether to enable progressive blur-to-sharp animation. |
baseOpacity | number | 0.1 | Controls the base opacity for the component animation. |
baseRotation | number | 3 | Controls the base rotation for the component animation. |
blurStrength | number | 4 | Peak blur amount in pixels. |
containerClassName | string | '' | Additional CSS classes for the outer wrapper container. |
textClassName | string | '' | Additional CSS classes applied directly to the text elements. |
scrollStart | string | 'top 90%' | ScrollTrigger starting threshold string (e.g., 'top 85%'). |
rotationEnd | string | 'top 40%' | Controls the rotation end for the component animation. |
wordAnimationEnd | string | 'top 40%' | Controls the word animation end for the component animation. |