Components

Background Ripple Effect

Interactive background ripple effect with customizable grid size and cell dimensions.

Background Ripple Effect

The BackgroundRippleEffect component creates an interactive background ripple effect with a grid of cells that respond to clicks. It's perfect for creating engaging backgrounds with visual feedback.

Usage

Tailwind CSS 4 Ripple

Click the background to see the new Tailwind 4 ripple effect!

<template>
  <div class="relative min-h-screen">
    <MBackgroundRippleEffect
      :rows="10"
      :cols="20"
      :cell-size="44"
    />

    <div class="relative z-10 p-8">
      <UContainer>
        <UCard class="backdrop-blur-sm bg-white/85 dark:bg-gray-900/85 border">
          <template #header>
            <div class="flex items-center justify-between">
              <h1 class="text-2xl font-bold text-gray-900 dark:text-white">
                Tailwind CSS 4 Ripple
              </h1>
              <UColorModeButton />
            </div>
          </template>

          <p class="text-gray-600 dark:text-gray-300 mb-4">
            Click the background to see the new Tailwind 4 ripple effect!
          </p>
        </UCard>
      </UContainer>
    </div>
  </div>
</template>

Props

rows
number
Number of rows in the grid.
cols
number
Number of columns in the grid.
cellSize
number
Size of each cell in pixels.

Examples

Basic Background Ripple Effect

Ripple Effect

Create interactive water-like ripples that respond to user movements for an engaging tactile experience

<template>
  <div class="relative h-64 rounded-lg overflow-hidden">
    <MBackgroundRippleEffect
      :rows="6"
      :cols="12"
      :cell-size="30"
    />
    <div class="relative z-10 h-full flex items-center justify-center">
      <h3 class="text-xl font-bold text-gray-900 dark:text-white">Basic Ripple Effect</h3>
    </div>
  </div>
</template>

Custom Grid Size

Custom Ripple Effect

<template>
  <div class="relative h-64 rounded-lg overflow-hidden">
    <MBackgroundRippleEffect
      :rows="15"
      :cols="25"
      :cell-size="20"
    />
    <div class="relative z-10 h-full flex items-center justify-center">
      <h3 class="text-xl font-bold text-gray-900 dark:text-white">Custom Ripple Effect</h3>
    </div>
  </div>
</template>
Nuxt Motion Block • © 2025