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 }
colors?ColorConfigSee ColorConfig defaults
animations?AnimationConfigSee AnimationConfig defaults
particleConfig?ParticleConfigSee ParticleConfig defaults
features?FeatureConfigSee FeatureConfig defaults
className?string""

ColorConfig Props

PropTypeDefault
gradient?string[]['#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
liquidShiftDuration?number8
surfaceRippleDuration?number6
shimmerSweepDuration?number10
particleFloatDuration?{ min?: number; max?: number }{ min: 3, max: 7 }

ParticleConfig Props

PropTypeDefault
glitterSize?number4
sparkSize?number2
opacity?{ min?: number; max?: number }{ min: 0.5, max: 1.0 }

FeatureConfig Props

PropTypeDefault
showGlitter?booleantrue
showSparks?booleantrue
showSurfaceHighlights?booleantrue
showShimmer?booleantrue
Last updated on