Updated
Ripple to Still
Still water
Customize
Duration1.4s
Strength16px
Text size48px
Installation
npx shadcn@latest add https://uibrik.com/r/ripple-to-still.jsonInstall the packages
npm install motionCopy the source into your project
components/uibrik/ripple-to-still/ripple-to-still.tsx"use client"; import { animate } from "motion/react"; import { useEffect, useId, useRef } from "react"; // `play` counts presses of a card's Change button. 0 means the card has not // been pressed yet, so every effect renders its resting state without // animating on page load. export type EffectProps = { play: number }; // Size comes from --text-effect-size (default 1.25rem, i.e. text-xl), so a // preview can enlarge every effect without changing the installed default. const SIZE = "text-[length:var(--text-effect-size,1.25rem)] leading-[1.4]"; const TEXT = `${SIZE} text-zinc-700 font-medium dark:text-zinc-200`; const EASE_OUT = [0.23, 1, 0.32, 1] as const; // 22 — The line starts wobbling like a reflection in water; the ripple calms // until the letters are sharp. Turbulence feeds a displacement map whose // strength runs down to zero while its frequency drifts, so the ripples move. export function RippleToStill({ play, text = "Still water",
Adds the files to
components/uibrik/ripple-to-still and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/ripple-to-still.Usage
import { RippleToStill } from "@/components/uibrik/ripple-to-still/ripple-to-still";<RippleToStill play={0} text="Still water" duration={1.4} strength={16}/>Where to use Ripple to Still
Calm headlines
Text rippling like water then settling gives a gentle entrance.
Wellness and spa brands
A water ripple matches relaxation and self-care products.
Pairs with Caustics
Creative intros
The settle from motion to stillness suits reflective, slow-paced sites.
Props
RippleToStill- text
- Type string
- "Still water"
- The copy to animate.
- duration
- Type number
- 1.4
- Time for the ripple to calm.
- strength
- Type number
- 16
- Starting displacement.
- playrequired
- Type number
- –
- Each change plays the effect again; 0 shows its resting state.