Elastic Hovers

Physics-based vertical stretch on character hover with spring animation.

Main Features of Elastic Hovers

How to Use Elastic Hovers in Next.js

Installation Guide for Elastic Hovers

Props

Customize the component with these props

PropertyTypeDefaultDescription
text
stringElastic PhysicsText to display
backgroundColor
stringbg-zinc-950Background color of the component
textSize
stringtext-8xlSize of the text
fontWeight
stringfont-thinFont weight of the text
defaultColor
string#e4e4e7Default color of the text
hoverColor
string#fffColor on hover
defaultScale
number1Default vertical scale
hoverScale
number1.5Vertical scale on hover
springStiffness
number200Spring animation stiffness
springDamping
number10Spring animation damping
springMass
number0.5Spring animation mass
hoverShadow
string0 0 20px rgba(255,255,255,0.5)Text shadow on hover
className
stringAdditional CSS classes

When to Use

Excellent for playful brand identities, toy/game websites, and modern Next.js landing pages. Use this React component for headers that need a tactile, 'squishy' feel as the user moves their cursor over individual characters.

Best Practices

Follow React best practices by pairing the elastic stretch with a subtle color shift. Maintain scalable component architecture by using the `springStiffness` and `springDamping` to create a natural, bouncy physics. Optimize for performance by using clean transforms for the character scaling.

Why This Component Matters in Modern UI Development

Elastic physics add a delightful sense of responsiveness and physical presence to digital text. This customizable UI component gives you a production-ready implementation of complex spring-based motion, adding semantic authority and personality to your real-world application architecture.

Frequently Asked Questions

QCan I adjust the 'bounciness'?

Yes, the `springStiffness` and `springDamping` props allow you to fine-tune the physics, from a stiff snap to a loose, jelly-like wobble.

QIs the vertical stretch too extreme for reading?

The `hoverScale` prop lets you control exactly how much each character stretches, allowing you to keep it subtle for professional designs.

QDoes it work with multi-line text?

While optimized for single lines, it can be used for multiple lines by wrapping each word or line in an Elastic Hovers instance.

Elastic Hovers - React Text Animation & Reveal | Uilora