Back to AIX Effects LibraryQA Verified · Synced
Interactive Components/<RippleInteraction />·Beginner

Ripple Interaction

Transforms cards, buttons, and interactive panels with customizable ring count, fade duration, and wave accent colors.

Next.js 16+React 19TypeScriptTailwind CSSFramer Motion
rings: 3850ms
Click anywhere on surface

Origin locks cleanly to pointer press coordinates

Keyboard Enter / Space supported

Click anywhere inside surface panel to emit concentric rings.

Installation

npm install framer-motion
framer-motion^13.4.0

Smoothly scales concentric wave spans inside overflow bounds.

Usage

import { RippleInteraction } from '@/components/effects/library/interactive/RippleInteraction'

<RippleInteraction
  rippleColor="#536dfe"
  durationMs={850}
  ringCount={3}
  className="rounded-2xl border p-8 bg-white dark:bg-[#141419]"
>
  <div className="text-center font-semibold">Click để phát sóng</div>
</RippleInteraction>

Props & API Reference

4 props
PropTypeDefaultDescriptionEffect
rippleColorstring'#536dfe'Stroke & radial core glow color.Tints expanding wave rings.
ringCountnumber3Concentric rings emitted per impulse (1–4).Adjusts concentric density.
durationMsnumber850Propagation duration in milliseconds.Controls ripple velocity.
pulseOnMountbooleantrueEmits subtle center wave briefly upon mount.Affordance indicator for first view.

More in Interactive Components

View All 36 →
R=145px · k=0.14Approach & Click

Magnetic Button

Spring-damped cursor pull pill button featuring decoupled inner text parallax and radial XOR glow.

View Details
Move pointer or tap cells to illuminate hairline grid
01
Pointer Tracking
02
Masked Grid
03
Touch Ready
04
Zero Packages
Beam 280px · Grid 28px

Cursor Spotlight

Radial light container uncovering masked hairline coordinates cleanly under pointer.

View Details
Select tabs across uneven label widths
active: overview · stiffness 400

Fluid Navigation Indicator

Dynamic width spring capsule gliding smoothly between navigation tabs via scoped layoutId.

View Details