Magic Spells
An interactive component that wraps elements with magical particle bursts and ritual aura animations.
Preview
Interactive Preview
Adaptive.OS
Beyond Reality
A sophisticated default field that adapts to light and dark environments. Every pixel within the ritual circle is redefined by arcane mathematics.
Spellcaster
Beyond Reality
A sophisticated default field that adapts to light and dark environments. Every pixel within the ritual circle is redefined by arcane mathematics.
Spellcaster
Experimental Flux Engine v1.1
Installation
Usage
tsx
import { MagicSpells } from "@/components/ui/magic-spells"
export default function Demo() {
return (
<MagicSpells type="arcane" variant="warp" distortionStrength={50}>
<div className="p-12 bg-zinc-950 rounded-3xl border border-white/10 overflow-hidden">
<h2 className="text-4xl font-black italic text-white mb-4 uppercase">
Flux Distortion
</h2>
<p className="text-zinc-400 max-w-md">
Experience pixel-level space-time manipulation. This component wraps any content and distorts it dynamically based on cursor position.
</p>
</div>
</MagicSpells>
)
}Dependencies
framer-motion
Props
| Prop | Type | Default |
|---|---|---|
| type | "arcane""fire""ice""void""nature""holy" | arcane |
| variant | "warp""glitch""magnify""dissolve""vortex""pixelate""ripple" | warp |
| distortionStrength | number | 40 |
| radius | number | 300 |
| particleDensity | number | 1 |
| showCursor | boolean | false |