Paper Shaders provides a collection of GPU-accelerated visual effects that run smoothly in the browser. Each shader is highly customizable and available as both React components and vanilla JavaScript functions.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/paper-design/shaders/llms.txt
Use this file to discover all available pages before exploring further.
Categories
Gradients
Smooth color transitions and blends perfect for backgrounds and visual interest.- Mesh Gradient - Flowing composition of color spots with organic distortion
- Static Mesh Gradient - Multi-point gradient with wave distortion controls
- Static Radial Gradient - Radial gradient with focal point and shape controls
- Grain Gradient - Multi-color gradients with grainy noise texture in 7 abstract forms
Noise & Organic
Natural, flowing patterns based on mathematical noise functions.- Simplex Noise - Smooth animated curves with multi-color gradients
- Neuro Noise - Glowing web-like structure of fluid lines
- Perlin Noise - Classic 3D Perlin noise with customizable octaves
- Smoke Ring - Radial gradient shaped with layered noise for smoky effects
Shapes & Patterns
Geometric and organic shapes with dynamic animations.- Metaballs - Gooey balls that merge into smooth organic shapes
- Voronoi - Animated cellular pattern with customizable edges
Installation
All shaders are included in the Paper Shaders packages:Usage Patterns
React Components
All shaders are available as React components:Vanilla JavaScript
For non-React projects, use the core package:Common Parameters
Most shaders share these common parameters:- speed - Animation speed multiplier (default: 1)
- frame - Manual frame control when speed is 0
- scale - Zoom level (0.01 to 4)
- rotation - Rotation angle in degrees (0 to 360)
- fit - How to fit the shader: ‘none’, ‘contain’, or ‘cover’
- offsetX/offsetY - Position offset (-1 to 1)
- originX/originY - Transform origin point (0 to 1)
Performance Tips
- Use
speed={0}and controlframemanually for paused animations - Lower
scalevalues can improve performance - Reduce color counts when possible
- Consider using simpler shaders for mobile devices
Browser Support
Paper Shaders requires WebGL 2.0 support, which is available in:- Chrome 56+
- Firefox 51+
- Safari 15+
- Edge 79+
