Liquid Gradient

A premium fluid simulation with deep burgundy and magenta tones, featuring a yellowish-white shine and high-detail noise.

Main Features of Liquid Gradient

How to Use Liquid Gradient in Next.js

Installation Guide for Liquid Gradient

Props

Customize the component with these props

PropertyTypeDefaultDescription
color1
string#220011Base Dark (e.g., Deep Burgundy)
color2
string#990055Mid Tone (e.g., Vibrant Magenta)
color3
string#fff4d0Highlight (e.g., Yellowish White)
speed
number0.8Animation speed
reflection
number0.6How shiny the highlights are

When to Use

Use this component for hero sections or full-page backgrounds where you want a deep, atmospheric, and highly 'liquid' feel that reacts subtly to mouse movement.

Best Practices

Pair with high-contrast, bold typography. The deep color shifts work best as a backdrop for minimal content that needs to feel premium and moody.

Why This Component Matters in Modern UI Development

Standard CSS-only gradients often lack the depth and organic feel of real-world fluid dynamics. This component uses GLSL shaders to provide high-performance, complex motion that elevates the visual quality of any modern web interface.

Frequently Asked Questions

QCan I use different colors?

Yes, you can pass any hex color to `color1`, `color2`, and `color3` to completely transform the mood from dark burgundy to any other palette.

QIs it performance-heavy?

The component uses WebGL via the OGL library, which is extremely lightweight and efficient, ensuring smooth 60fps animations even on mobile devices.

QDoes it support mouse interaction?

Yes, it has a built-in mouse lag/follow effect that subtly distorts the liquid based on the cursor position.

Liquid Gradient - Mesh Gradients & CSS Backgrounds | Uilora