Blur Highlight

Animated paragraph with blur-in effect and automatic text highlighting

blur-highlight-tw
Our cutting-edge technology transforms how businesses analyze data and make decisions. From real-time insights to predictive analytics, we deliver solutions that drive growth and innovation.

Customize

8px
0.3
0s
0.8s
0.4s
1s

Props

NameTypeDefaultDescription
childrenReact.ReactNode-Text content to display
highlightedBits(string | HighlightBit)[][]Array of text strings or objects to highlight. Use string for all occurrences, or { text: string, occurrence: number } for specific ones.
highlightColorstring"hsl(80, 100%, 50%)"Color for highlighted text (any CSS color)
highlightClassNamestring""Additional class name for highlighted text elements
blurAmountnumber8Initial blur amount in pixels
inactiveOpacitynumber0.3Opacity when not in view
blurDelaynumber0Blur animation delay in seconds
blurDurationnumber0.8Blur animation duration in seconds
highlightDelaynumber0.4Highlight animation delay in seconds
highlightDurationnumber1Highlight animation duration in seconds
highlightDirection"left" | "right" | "top" | "bottom""left"Direction of highlight animation
viewportOptions{ once?: boolean; amount?: number }{ once: false, amount: 0.5 }Viewport intersection observer options (margin is fixed at -20%)
classNamestring""Additional CSS classes