v2.2
MENU ANIMATIONS
UI SURECART
BUTTONS
Interactive Gradient
Creates dynamic gradients that respond to mouse/touch movement. Uses CSS custom properties with smooth interpolation for fluid animations. Features 6 artistic presets with layered radial and linear gradients using blend modes. Supports multi-color palettes and customizable sensitivity. Perfect for hero sections, backgrounds, or adding life to any container.
Interactive Gradient
Move your mouse over the gradient to interact.
Aurora
Interactive Gradient Effect
Colors
Color palette for gradient. Separate colors with | symbol. Minimum 2 colors required, up to 6 colors supported depending on preset.
Required (e.g., "#667eea|#764ba2|#f093fb")
Preset
Artistic gradient style with unique blend modes and patterns. Options: aurora (6 colors, northern lights), bloom (4 colors, soft petals), cosmic (3 colors, space nebula), wave (5 colors, fluid motion), twilight (2 colors, simple fade), ember (4 colors, fire glow).
Default: aurora
Interaction
Strength of gradient shift. Higher creates more dramatic movement from cursor position.
Default: 1
Animation interpolation speed. Lower is smoother but slower to respond, higher is snappier.
Default: 0.15
Mouse movement sensitivity multiplier. Higher amplifies small movements for more reactive feel.
Default: 1
Performance
This element uses CSS custom properties (--posX, --posY) with calc() for gradient positioning. Features smooth interpolation via requestAnimationFrame with lerp algorithm for natural easing. Uses passive event listeners for pointer and touch. Respects prefers-reduced-motion for accessibility. Employs background-blend-mode for artistic effects. Very lightweight - suitable for all devices and multiple instances per page with 60fps performance.