React Usage
Vanilla JavaScript Usage
Parameters
Background color in hex format.
Array of up to 5 spot colors in hex format. Supports alpha channel.
Border radius. 0 creates sharp corners, 1 creates circular shape. Range: 0 to 1.
Border base width. Range: 0 to 1.
Uniform margin distance from all edges. Range: 0 to 1.
Distance from the left edge to the effect. Overrides
margin. Range: 0 to 1.Distance from the right edge to the effect. Overrides
margin. Range: 0 to 1.Distance from the top edge to the effect. Overrides
margin. Range: 0 to 1.Distance from the bottom edge to the effect. Overrides
margin. Range: 0 to 1.Aspect ratio mode:
auto: Adapts to container dimensionssquare: Forces square proportions
Border edge sharpness. 0 creates hard edges, 1 creates smooth gradients. Range: 0 to 1.
Thickness of individual color spots. Range: 0 to 1.
Power of glow. 0 uses normal blending, 1 uses additive blending. Range: 0 to 1.
Number of spots added for each color. Range: 1 to 20.
Angular size of spots. Range: 0 to 1.
Optional pulsing animation intensity. Range: 0 to 1.
Optional noisy shape extending the border. Range: 0 to 1.
Size of the smoke effect. Range: 0 to 1.
Animation speed multiplier. Set to 0 to pause animation.
Specific frame to display when speed is 0.
Common Sizing Parameters
Overall zoom level of the graphics. Range: 0.01 to 4.
Rotation angle in degrees. Range: 0 to 360.
How to fit the shader into the canvas dimensions.
Horizontal offset of the graphics center. Range: -1 to 1.
Vertical offset of the graphics center. Range: -1 to 1.
Presets
The Pulsing Border shader comes with several built-in presets:- Default: Cyan, magenta, and red rounded border
- Circle: Circular glowing border with smoke
- Northern lights: Slow-moving ethereal aurora effect
- Solid line: Simple single-color line border
Notes
- Use individual margin properties for asymmetric borders
- Combine
pulsewithspotSizefor dramatic pulsing effects - Set
bloom={1}for intense additive glow - Use
aspectRatio="square"withroundness={1}for perfect circles
