Google Essay 01 · Origin Touch Ripple · 3 min · Origin ripple & morph lab
Feedback starts at the fingertip: Material ripples & shape morphing
Why Google anchors every ripple to pointer (x, y) corner-distance math, pairs it with squircle shape morphs, and lifts surfaces via tonal roles.
Touch Origin Lab: Compare pointer-anchored ripple vs. generic center flash & shape morphs
Tap any corner on both pads to compare (x, y) corner-radius math against generic center flashes, tune radius & duration sliders, and morph between Pill, Squircle, and Circle shapes.
Tap either pad above to inspect live (x, y) and r = Math.hypot(dx, dy) math.Three practical takeaways
- Traceable origin: Anchor ripples at
(x, y)and calculate radius to the farthest corner so the wave fills any aspect ratio cleanly. - Shape signals intent: Morphing between pill, squircle, and circle communicates active state faster than color swaps alone.
- Tonal depth over heavy shadows: Material 3 separates elevation through surface tonal steps and subtle state-layer opacities.
Why generic center flashes weaken touch confidence
Tap the far corner of a wide list row and see a highlight bloom from the dead center—your eye immediately feels a spatial disconnect between touch and response.
Since the first Material Design spec in 2014, Google treated touch feedback as ink soaking outward from the exact pointer coordinate (x, y). Material 3 Expressive extends that contract by pairing origin ripples with continuous corner morphing and tonal surface shifts.
Precision geometry: farthest-corner Pythagoras & tonal elevation
Production Material ripples never guess width * 1.5. They compute Math.hypot(dx, dy) to the farthest corner of the bounding box so every wave terminates right as it kisses the furthest boundary.
Meanwhile, Material 3 replaces heavy drop shadows with tonal elevation—stepping surfaces from neutral #f8f9fc toward crisp Google-tinted #edf2fa and #d3e3fd containers.
Cause and effect in UI need no explanation when motion sprouts directly from the tap coordinate and container corners morph to catch the gesture.
Origin & Historical Trajectory
- 2014Material 1 · Quantum Paper & Ink Ripple
Google I/O introduced tactile paper surfaces, Z-axis shadows, and pointer-origin ink ripples across Android and Web.
- 2018Material 2 · Shape Families & Theming
Added small, medium, and large shape tokens so apps could break out of uniform rectangular rigidity.
- 2021Material 3 · Tonal Elevation & State Layers
Replaced heavy drop shadows with tonal color elevation and standardized 8%/12% state-layer opacities.
- 2025M3 Expressive · Shape Morph & Tactile Energy
Added springy corner morphs, split FAB gooey merges, and bold tactile state transitions across Pixel interfaces.
Act I · Origins & Philosophy
1. Ten-Year Arc: From Quantum Paper to Material 3 Expressive
Few tech giants have sustained a single physical metaphor for more than a decade while letting it mature from rigid paper sheets into expressive, morphing surfaces. Every ripple and pill morph on modern Pixel devices traces back to an eleven-year design evolution.
At Google I/O 2014, teams answered hyper-flat boredom with Quantum Paper: digital layers obeyed consistent Z-space physics, and a finger tap dropped ink onto the sheet via an .
Material 2 (2018) unlocked shape customization, while Material You / M3 (2021) replaced heavy drop shadows with adaptive . By 2025, Material 3 Expressive proved through large-scale eye-tracking studies that pairing ripples with bold corner morphs helps users spot and trust primary actions noticeably faster.
2. Design Philosophy: Why Tactile Cause Must Match the Pointer
Beginners often wonder why calculating pointer (x, y) coordinates matters when a simple CSS :active background flash takes two lines. The answer lies in the missing hover state on touch screens.
Desktop pointers preview clickability before pressing down via hover tinting. On mobile glass, there is no hover—your thumb simply covers the target. If the entire bar flashes uniformly, your brain receives zero spatial confirmation of where contact occurred.
Growing a wave straight out from under the fingertip restores physical causality: the direction the ring travels visually confirms both the exact hit spot and the container boundary responding to your press.
Act II · How the Craft Is Constructed
3. Ripple Geometry: Computing the Exact Farthest-Corner Radius
Naive ripple snippets hardcode 100px circles or width * 2. They look fine on square icons, then fail miserably when someone taps the left edge of a 360px banner—fading out halfway across the surface.
Clean implementations use : compute dx = Math.max(x, width - x) and dy = Math.max(y, height - y), then take r = Math.hypot(dx, dy). No matter how wide or tall the card is, the expanding circle reaches the furthest corner cleanly.
Opacity choreography matters just as much. Instead of fading linearly from frame zero, hold 0.35 alpha through the first third of expansion so the ring reads distinctly, then fade smoothly to zero along ease-out.
4. Shape Morphing & State Layers: Pill, Squircle, and Overlays
Ripples alone no longer define modern Google UI. Watch Android 15 quick-settings tiles or modern Material 3 Expressive buttons: corners themselves flex between states via .
Pair three anchor radii—999px resting pill, 16px–20px active squircle, and 50% circular icon target—and animate border-radius alongside a gentle 0.97 -> 1 settle over 280ms when toggling state.
Handle hover and focus cleanly through : place a pseudo-element tint layer at 8% opacity for hover, 12% for focus/press, and 16% for drag. One formula scales effortlessly across blue, mint, and amber tonal cards.
5. Tonal Elevation & 48px Hit Targets: Clean Daylight Depth
Heavy black drop shadows quickly make bright interfaces look muddy. Material 3 keeps daylight clarity intact by translating elevation into tonal warmth: #f8f9fc base paper, #edf2fa container cards, #d3e3fd active chips, and #0b57d0 primary anchors.
Equally critical is the . Keep visible icons crisp at 20–24px if desired, yet ensure the interactive <button> hit area and ripple layer span at least 44–48px with >= 8px gaps between neighbors.
Rendering the visual pill smaller inside an expanded transparent hit box preserves airy visual density while eliminating frustrating mobile mis-taps.
Act III · How to Design Something Similar
6. Playbook for Beginners: Three Steps to Crisp Material Feel
You do not need to memorize hundreds of Material spec pages to get this clean, cheerful responsiveness into your own dashboard or side project.
First, swap murky dark shadows for three clean tonal tiers: #f8f9fc canvas, #edf2fa generous rounded cards (24px+), and #0b57d0 reserved strictly for primary actions and active states.
Second, attach only to genuine interactive targets so the wave becomes a reliable signifier of clickability, and pair active toggles with a quick 280ms pill-to-squircle corner morph.
7. Playbook for Designers: Codifying Shape Morphs & Tonal Roles
At design-system scale, the danger of expressive styles is visual sprawl—ten squads inventing ten different corner radii and custom ripple tints.
Lock down a four-step Shape Scale (8px, 16px, 24px, 999px) and explicitly document valid state morph pairs (such as 999px resting pills morphing into 16px squircles when active).
Decouple tonal surface containers from state-layer opacities (8% hover, 12% active) and drive ripple hues from currentColor or --m3-primary, ensuring seamless multi-theme switching without per-component overrides.
8. Engineering Verification: WAAPI Cleanup & Reduced-Motion Fallbacks
In production DOM environments, memory leaks from leftover ripple elements are a classic bug. Always place ripples inside an isolated pointer-events: none clip container, animate transform and opacity via Web Animations API, and remove the node reliably on both finish and cancel.
For press-and-hold authenticity, start expansion immediately on pointerdown and hold the filled tint smoothly until pointerup or pointercancel before fading out; cap concurrent ripple nodes per control so rapid multi-taps never bloat the DOM.
Finally, honor prefers-reduced-motion: reduce: skip spatial scale growth entirely in favor of a subtle 12% surface-layer opacity flash, keep crisp 2px :focus-visible outlines, anchor keyboard activations at (50%, 50%), and verify 48px touch geometry at both 1440px and 390px.
Four engineering checks before shipping origin ripples
- Compute
(x, y)relative to target rect andMath.hypotto the farthest corner (center fallback for keyboard). - Clip waves inside a dedicated
pointer-events: none; overflow: hidden; border-radius: inheritlayer so focus rings never clip. - Remove animated ripple spans cleanly on WAAPI
finishandcancelevents. - Replace growing rings with a calm state-layer opacity flash under
prefers-reduced-motion: reduce.
View keyword glossary notes
Origin-anchored ripple — Wave anchored at tap (x, y) rather than element center
Captures local (x, y) offset on pointerdown so the wave radiates from the finger; falls back cleanly to element center for keyboard activation.
origin: pointer(x, y) | keyboard(50%, 50%)Farthest-corner radius math — Using Math.hypot(maxDx, maxDy) to guarantee corner-to-corner fill
Takes dx = Math.max(x, width - x) and dy = Math.max(y, height - y) to compute r = Math.hypot(dx, dy), filling wide cards from any corner.
r = Math.hypot(Math.max(x, w - x), Math.max(y, h - y))Pill-to-squircle shape morph — Animating border-radius & scale between rest and pressed states
M3 Expressive transitions container radii between 999px pills, 16px squircles, and tight circles with subtle scale feedback.
border-radius: 999px <-> 16px <-> 50% · 280msTonal surface elevation — Replacing murky drop shadows with stepped surface tint levels
Steps surfaces from #f8f9fc base to #edf2fa cards and #d3e3fd active pills so layering reads clearly in bright daylight.
L0 #f8f9fc -> L1 #edf2fa -> L2 #d3e3fdM3 state layer opacities — Consistent 8% hover & 12% press overlays over any surface
Applies unified 0.08 hover and 0.12 focus/pressed overlays above any container token rather than maintaining brittle per-color hover palettes.
hover: 8% · focus/press: 12% · dragged: 16%48×48dp touch target grid — Keeping visual icons compact while preserving a 48px interactive hit box
Visual icons may stay 24px crisp, yet the clickable container and ripple mask span at least 44–48px for comfortable thumb reach.
min-width: 48px; min-height: 48px; gap: >= 8pxWave anchored at tap (x, y) rather than element center
Captures local (x, y) offset on pointerdown so the wave radiates from the finger; falls back cleanly to element center for keyboard activation.
origin: pointer(x, y) | keyboard(50%, 50%)Using Math.hypot(maxDx, maxDy) to guarantee corner-to-corner fill
Takes dx = Math.max(x, width - x) and dy = Math.max(y, height - y) to compute r = Math.hypot(dx, dy), filling wide cards from any corner.
r = Math.hypot(Math.max(x, w - x), Math.max(y, h - y))Animating border-radius & scale between rest and pressed states
M3 Expressive transitions container radii between 999px pills, 16px squircles, and tight circles with subtle scale feedback.
border-radius: 999px <-> 16px <-> 50% · 280msReplacing murky drop shadows with stepped surface tint levels
Steps surfaces from #f8f9fc base to #edf2fa cards and #d3e3fd active pills so layering reads clearly in bright daylight.
L0 #f8f9fc -> L1 #edf2fa -> L2 #d3e3fdConsistent 8% hover & 12% press overlays over any surface
Applies unified 0.08 hover and 0.12 focus/pressed overlays above any container token rather than maintaining brittle per-color hover palettes.
hover: 8% · focus/press: 12% · dragged: 16%Keeping visual icons compact while preserving a 48px interactive hit box
Visual icons may stay 24px crisp, yet the clickable container and ripple mask span at least 44–48px for comfortable thumb reach.
min-width: 48px; min-height: 48px; gap: >= 8pxCopy this essay’s prompt snippet (Origin ripple & shape morph)
Read prompt text
Implement Google Material 3 Expressive touch feedback:
- Anchor click ripples at pointer `(x, y)` with radius `Math.hypot(Math.max(x, w - x), Math.max(y, h - y))`, holding `0.35` alpha through early expansion before fading over 580ms ease-out;
- Render waves inside a dedicated `pointer-events: none; overflow: hidden; border-radius: inherit` inner layer and remove nodes on WAAPI finish/cancel without clipping `:focus-visible`;
- Pair active toggles with a 280ms pill (`999px`) to squircle (`16px`) border-radius morph, `8%`/`12%` state overlays, and `#f8f9fc` / `#edf2fa` / `#d3e3fd` tonal elevation.