Ripples Background Component

WebGL-based Interactive Water Ripple Background

Encapsulated Vue component with mouse/touch interaction, auto drops, and customizable parameters

Interactive Demo

Water Ripple Effect Demo

Move or click to create ripples

Parameter Controls

Code Example

<AnimationRipplesBackground
  image-url="/img/home/hero-gradient.svg"
  :resolution="512"
  :drop-radius="20"
  :perturbance="0.03"
  :interactive="true"
  :auto-drops="true"
  :auto-drops-interval="400"
  :auto-drops-strength="0.04"
>
  <h1>Content on top of ripples</h1>
</AnimationRipplesBackground>

Props Reference

PropTypeDefaultDescription
imageUrlStringrequiredBackground image URL (required)
resolutionNumber256Ripple resolution (recommended: 256, 512, 1024)
dropRadiusNumber20Drop radius
perturbanceNumber0.03Perturbance strength (recommended: 0.01 ~ 0.1)
interactiveBooleantrueEnable mouse/touch interaction
autoDropsBooleanfalseEnable auto drops effect
autoDropsIntervalNumber400Auto drops interval (ms)