Text Highlight

A text animation with marker-like highlighting

Cool highlight effect

Installation

npx shadcn@latest add "https://optiqui.com/r/text-highlight"

highlightLayerType

PropTypeDescriptionDefault
opacitynumberopacity of highlight layer-
rotatenumberTilt of highlight layer-
delaynumberDelay of drawing highlight layer-
directionnumberDraw highlight from left to right or from right to left-

TextHighlightProps

PropTypeDescriptionDefault
textstringText to get highlighted-
customOverlayshighlightLayerType[]Custom highlight layers-
textClassNamestringAdditional classNames applied to text-
highlightClassNamestringAdditional classNames applied to highlight layers-
waitTillInViewbooleanDon't run animation until in viewtrue