Toggle Sidebar B
AppearanceLight & dark mode D

Magic Rings

Interactive magic rings effect with customizable parameters.

Default

Switch between the Basic and Card layouts, then tune the rings with the controls underneath. Turn on Follow Mouse or Click Burst to make the rings react to the pointer.

Light previewReplay previewOpen in new tab

Customize

Example
Color
Color Two
Ring Count6
Speed1
Attenuation10
Line Thickness2
Base Radius0.35
Radius Step0.1
Scale Rate0.1
Opacity1
Blur0
Noise Amount0.1
Rotation0
Ring Gap1.5
Fade In0.7
Fade Out0.5
Mouse Influence0.2
Hover Scale1.2
Parallax0.05

API Reference

MagicRings

PropTypeDefaultDescription
colorstring'#fc42ff'Hex color for the rings.
colorTwostring'#42fcff'Second color. Rings interpolate from color to colorTwo.
ringCountnumber6Number of concentric rings to draw (1-10).
speednumber1Animation speed multiplier.
attenuationnumber10Glow falloff. Higher values produce tighter glow.
lineThicknessnumber2Thickness of each ring line.
baseRadiusnumber0.35Radius of the innermost ring (normalized).
radiusStepnumber0.1Spacing between successive rings.
scaleRatenumber0.1How much rings expand over time.
opacitynumber1Overall opacity of the effect (0-1).
blurnumber0CSS blur in px. Creates a bloom/glow effect.
noiseAmountnumber0.1Film-grain noise intensity.
rotationnumber0Static rotation of the pattern in degrees.
ringGapnumber1.5Exponential base for angular cutaway per ring.
fadeInnumber0.7Duration of ring fade-in within cycle.
fadeOutnumber0.5Start time of ring fade-out within cycle.
followMousebooleanfalseRings shift toward the mouse cursor.
mouseInfluencenumber0.2Strength of mouse follow (when followMouse is true).
hoverScalenumber1.2Scale multiplier on hover.
parallaxnumber0.05Per-ring depth offset based on mouse position.
clickBurstbooleanfalseClick triggers a brightness flash and scale pulse.
alphaMode'luminance' | 'coverage''luminance'Uses emissive luminance alpha on dark surfaces or geometry coverage alpha for dark colors on light surfaces.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • Purely decorative canvas. Place it behind content with enough contrast. Needs WebGL2; renders nothing without it.