Kinetic UI
Back to Introduction
Background Effects

Mesh Gradient

An animated, fluid mesh gradient background component powered by Framer Motion and heavy CSS blurs.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add mesh-gradient

The MeshGradient component creates a stunning organic gradient background using intersecting, animated SVG blurs. It's an essential element in modern "glassmorphism" or Awwwards-winning hero sections.

Live Preview

Mesh Gradient

Fluid Mesh

Intersecting animated SVG blurs create an organic, endlessly shifting glassmorphism background.

Installation

npx kinetic-ui-cli@latest add mesh-gradient

Props

Usage Guide

1. Import the Component

Import the component into your React or Next.js page:

import { MeshGradient } from "@/components/creative/magnetic-button";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { MeshGradient } from "@/components/creative/magnetic-button";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <MeshGradient
        color1="example"
        color2="example"
        color3="example"
      >
        <div>Content goes here</div>
      </MeshGradient>
    </div>
  );
}
Performance Notes
  • Uses CSS hardware acceleration via GPU transform-binds.
  • Damped interpolation minimizes paint-redraw flashes.
  • Tree-shakable import: only compiles elements requested.
Accessibility Notes
  • Full keyboard focus-ring navigation support (`Tab`/`Shift+Tab`).
  • ARIA roles mapped correctly for assistive screen readers.
  • Respects `prefers-reduced-motion` system toggles.