Scroll Reveal Text
Text animation tied to scroll position - reveals as you scroll, reverses when scrolling back up. Creates dynamic, interactive text effects perfect for storytelling and hero sections.
Blur Reveal
Text blurs into clarity as you scroll down, and blurs back out when scrolling up.
Character Reveal
Each character reveals individually based on scroll progress.
Slide Reveal
Text slides into view tied to scroll position.
Installation
npm install framer-motionpnpm install framer-motionyarn add framer-motionbun add framer-motionProps
| Prop | Type | Default |
|---|---|---|
text? | string | required |
revealType? | 'blur' | 'fade' | 'slide' | 'scale' | 'characters' | 'blur' |
scrollOffset? | [string, string] | ['start 0.9', 'start 0.3'] |
staggerDelay? | number | 0.03 |
blurAmount? | number | 10 |
slideDistance? | number | 30 |
className? | string | '' |
Examples
// Blur reveal (default)
<ScrollRevealText
text="As you scroll, I reveal"
revealType="blur"
blurAmount={15}
/>
// Character-by-character reveal
<ScrollRevealText
text="Character by character"
revealType="characters"
staggerDelay={0.02}
/>
// Slide in from below
<ScrollRevealText
text="Sliding into view"
revealType="slide"
slideDistance={50}
/>
// Fade in
<ScrollRevealText
text="Fading in"
revealType="fade"
/>
// Scale in
<ScrollRevealText
text="Scaling up"
revealType="scale"
/>
// Custom scroll trigger points
<ScrollRevealText
text="Earlier trigger"
scrollOffset={['start 0.95', 'start 0.5']}
/>Random Unveil
Random unveil animations create a dynamic and engaging effect as elements appear on the screen. This technique can be used to draw attention to specific content or enhance the overall user experience.
Scroll Velocity
Scroll velocity animations create a dynamic and engaging effect as elements move on the screen. This technique can be used to draw attention to specific content or enhance the overall user experience.
