Text Split

Split text animation that shifts top and bottom halves on hover with customizable offset and falloff.

Examples

Text Split Preview

BB
ee
rr
ll
ii
xx
  
UU
II

Text Split with gradual Falloff

CC
uu
tt
  
tt
hh
rr
oo
uu
gg
hh
  
tt
hh
ee
  
ss
ii
ll
ee
nn
cc
ee

Installation

npx shadcn@latest add "https://ui.rechesoares.com/registry/text-split.json"

Component Props

PropTypeDefaultRequiredDescription
childrenstring-YesText to be split.
classNamestring-NoOptional classes for the outer container
topClassNamestring-NoOptional classes for the top half.
bottomClassNamestring-NoOptional classes for the bottom half.
maxMovenumber50NoMaximum vertical movement percentage.
falloffnumber0.3NoControls how much nearby letters move when hovering.