Skip to Content
🎉Introducing Pumki UI
BackgroundsPotion Magic

Magical Potion Background 🧙🏻‍♀️

A mesmerizing, fully customizable React background component that creates an immersive liquid potion effect.

Perfect for fantasy games, magical applications, or any project that needs an enchanting animated background.

Blue Magical Potion

A mesmerizing blue potion background with a magical liquid effect.

Pumki UIPumki UI

Installation

Usage


1import { PotionBackground } from '@/components/pumki-ui/backgrounds/bg-potion';

1<PotionBackground />

Example

Basic (Golden Potion)

A simple golden potion background with a shimmering liquid effect.

Pumki UIPumki UI

Full customization

Pumki UIPumki UI

Custom particle counts

Pumki UIPumki UI

Performance optimized

fewer particles, faster animation

Pumki UIPumki UI

Minimal version

no particles

Pumki UIPumki UI

Props

PotionBackground Props

PropTypeDefault
glitterCount{ mobile?: number; desktop?: number }{ mobile: 250, desktop: 500 }
sparkCount{ mobile?: number; desktop?: number }{ mobile: 200, desktop: 350 }
colorsColorConfigSee ColorConfig defaults
animationsAnimationConfigSee AnimationConfig defaults
particleConfigParticleConfigSee ParticleConfig defaults
featuresFeatureConfigSee FeatureConfig defaults
classNamestring""

ColorConfig Props

PropTypeDefault
gradientstring[]['#faf398', '#f9f295', '#e0aa3e', '#b88a44', '#8b6f47']
glitterParticle{ inner?: string; middle?: string; outer?: string }{ inner: '#ffffff', middle: '#faf398', outer: '#e0aa3e' }
sparkParticle{ inner?: string; middle?: string; outer?: string }{ inner: '#fff', middle: 'rgba(255, 255, 255, 0.9)', outer: 'rgba(224, 170, 62, 0.9)' }
highlights{ primary?: string; secondary?: string; accent?: string }{ primary: 'rgba(255, 255, 255, 0.1)', secondary: 'rgba(255, 255, 255, 0.15)', accent: 'rgba(212, 175, 55, 0.1)' }

AnimationConfig Props

PropTypeDefault
liquidShiftDurationnumber8
surfaceRippleDurationnumber6
shimmerSweepDurationnumber10
particleFloatDuration{ min?: number; max?: number }{ min: 3, max: 7 }

ParticleConfig Props

PropTypeDefault
glitterSizenumber4
sparkSizenumber2
opacity{ min?: number; max?: number }{ min: 0.5, max: 1.0 }

FeatureConfig Props

PropTypeDefault
showGlitterbooleantrue
showSparksbooleantrue
showSurfaceHighlightsbooleantrue
showShimmerbooleantrue
Last updated on