Hulian UIv0.93.5413 components0 components
  • Start
  • Components
  • Blocks
  • Pages
  • Demos
  • Changelog
ChineseEnglish
  • ComponentsComponents
  • ThemeTheme

Backgrounds

  • DotPattern
  • GridPattern
  • StripedPattern
  • Spotlight
  • FadeMask
  • RetroGrid
  • Ripple
  • Meteors
  • Aurora
  • Particles
  • FlickeringGrid
  • WavyBackground
  • Silk
  • Iridescence
  • Threads
  • Orb
  • LiquidChrome
  • Balatro
  • Ballpit
  • Beams
  • ColorBends
  • DarkVeil
  • Dither
  • DotField
  • EvilEye
  • FaultyTerminal
  • Ferrofluid
  • FloatingLines
  • Galaxy
  • GradientBlinds
  • Grainient
  • GridDistortion
  • GridMotion
  • GridScan
  • Hyperspeed
  • LetterGlitch
  • Lightfall
  • Lightning
  • LightPillar
  • LightRays
  • LineWaves
  • LiquidEther
  • PixelBlast
  • PixelSnow
  • Plasma
  • PlasmaWave
  • Prism
  • PrismaticBurst
  • Radar
  • RippleGrid
  • ShapeGrid
  • SideRays
  • SoftAurora

Overlay Effects

  • BorderBeam
  • ShineBorder
  • GlareHover
  • Lens
  • AnimatedBeam
  • OrbitingCircles
  • ProgressiveBlur
  • CardSpotlight
  • Reveal
  • Antigravity
  • BlobCursor
  • ClickSpark
  • Crosshair
  • ElectricBorder
  • GhostCursor
  • GradualBlur
  • ImageTrail
  • LaserFlow
  • MagicRings
  • Magnet
  • MagnetLines
  • MetaBalls
  • MetallicPaint
  • OrbitImages
  • PixelTrail
  • PixelTransition
  • Ribbons
  • ShapeBlur
  • SplashCursor
  • StarBorder
  • StickerPeel
  • TargetCursor
  • Cubes
  • Tilt
  • BorderGlow
  • GlassIcons
  • GlassSurface
  • Lanyard
  • ModelViewer
  • FluidGlass

LiquidEther

liquid-ether

Produces a pointer-stirred liquid color field with metaball-like motion.

Usage

Basic usage

Just put it into the relative container. The component comes with absolute inset-0; the default is to automatically patrol and stir the liquid level, and the color is chart token with adaptive light and dark.

LiquidEther
tsx
<div className="relative h-64 overflow-hidden rounded-xl bg-neutral-950">
  <LiquidEther />
  <div className="relative z-10 flex h-full items-center justify-center text-white/85">
    LiquidEther
  </div>
</div>

Custom Palette · Large Blob

colors Connect to any CSS color (hex / oklch / var token); scale The larger the chromophore, the more macroscopic it is, and speed controls the tumbling speed.

tsx
<LiquidEther
  colors={[
    "var(--color-chart-3)",
    "oklch(0.72 0.22 30)",
    "var(--color-chart-1)",
  ]}
  scale={1.6}
  speed={0.7}
/>

Still waiting for interaction

autoDemo={false} Turn off the automatic tour, the screen remains still and wait for the real pointer; mouseForce Turn it up to make the stirring more convenient.

tsx
<LiquidEther autoDemo={false} mouseForce={1.5} />

Wallpaper level overlay

Slow + Translucent (opacity) reduces the visual weight and serves as the title area background to overlap below the text.

Hulian component library

Liquid color gamut · Mouse driver

tsx
<div className="relative h-64 overflow-hidden rounded-xl bg-neutral-950">
  <LiquidEther speed={0.3} scale={1.2} opacity={0.7} />
  <div className="relative z-10 flex h-full flex-col items-center justify-center gap-2">
    <p className="text-lg font-semibold text-white">Hulian Component Library</p>
    <p className="text-xs text-white/60">Liquid color gamut · Mouse driver</p>
  </div>
</div>

When to Use

Use LiquidEther behind a creative landing page, product hero, or sign-in surface when color should move organically and react to the pointer. Its visual weight is high; lower opacity beneath text and reserve full opacity for artwork-led layouts. Choose DotPattern or GridPattern for regular geometry, or Spotlight for a localized pointer glow.

Import

ts
import { LiquidEther } from "@hulianui/ui"

Props

NameTypeDefaultDescription
colorsstring[]["var(--color-chart-1)","var(--color-chart-2)","var(--color-chart-4)"]Palette of CSS colors. One value is repeated across the three shader stops; two values reuse the second for the final stop. Theme variables update with light and dark modes.
speednumber0.5Animation-speed multiplier; 0.2-1.5 is recommended
scalenumber1Liquid-blob scale; lower values create smaller separated forms and higher values merge them, with 0.6-2 recommended
mouseForcenumber1Strength of the real or automatic pointer force; 0 removes pointer-driven force while time-based metaball motion continues, with 0-2 recommended
autoDemobooleantrueDrive the force point along a virtual path until a real pointer enters; false leaves the force at rest until real input arrives
opacitynumber1Root opacity from 0 to 1; 0.6-0.85 often works behind foreground content
classNamestring-Class name forwarded to the canvas wrapper or fallback root
styleCSSProperties-Inline styles forwarded to the root

Slots

SlotTypeDescription
fallbackReactNodeDecorative content rendered inside the static multipoint chart-token gradient when reduced motion is enabled; the fallback root is aria-hidden

Usage Guidelines

  • The live root is absolute inset-0 z-0 and receives pointer events. Put it in a relative overflow-hidden parent, layer content at relative z-10, and use pointer-events-none only on decorative foreground copy so movement can still reach LiquidEther. See [[webgl-canvas-rendered-but-invisible-negative-zindex-covered]].
  • During SSR, the live root has no canvas. After hydration, a canvas is appended before OGL import and scene setup; if either step fails, that uninitialized or blank canvas remains and LiquidEther does not switch to the reduced-motion fallback. Reduced motion instead renders the static gradient plus decorative fallback content.
  • CSS variables in colors are resolved through an off-screen canvas. Use full names such as var(--color-chart-1); bare values such as var(--primary) cannot be resolved. See [[oklch-css-var-color-must-parse-via-offscreen-canvas]].
  • A throttled animation frame loop can make headless screenshots appear static or empty. Verify motion on a real device or through Playwright frame measurements; see [[recharts-headless-screenshot-blank-clippath-animation-starved]].

Related

DotPattern · GridPattern · StripedPattern · Spotlight · RetroGrid · Ripple

Playground

LiquidEther
<div className="relative h-64 overflow-hidden rounded-xl"
     style={{ background: "oklch(0.14 0.02 270)" }}>
  <LiquidEther
    speed={0.5}
    scale={1}
    mouseForce={1}
    autoDemo={true}
    opacity={1}
  />
</div>
PreviousLineWavesDecorationNextPixelBlast

On this page

  • Usage
  • Documentation
    • When to Use
    • Import
    • Props
    • Slots
    • Usage Guidelines
    • Related
  • Playground