Lines Gradient Shader
A canvas-based animated shader background with flowing gradient bands. Renders smooth wave-like lines with customizable colors, speed, and density.
New components and templates every month
Build your next project in minutes, not hours.
We are a team of developers who are passionate about creating web apps that make you feel like you're in the future.
The shader renders to an HTML canvas using requestAnimationFrame for smooth 60fps animation. Bands flow across the screen with wave-like motion, each colored from a gradient palette that can be customized via props.
Configurable properties include band count, spacing, thickness, wave amplitude, and animation speed. The canvas handles device pixel ratio for crisp rendering on high-DPI displays. A ResizeObserver keeps the canvas sized correctly.
The component pauses animation when the browser tab is hidden (using visibility change event) and resumes when visible. This saves resources when users switch tabs.
Works well as a hero section background, landing page hero, or anywhere you need a dynamic, colorful background that adds visual interest without distracting from content.
More from Shaders
Included with All-Access
One payment unlocks the code for this block and every other block, template and page.
Get All-AccessAbout this block
The shader renders to an HTML canvas using requestAnimationFrame for smooth 60fps animation. Bands flow across the screen with wave-like motion, each colored from a gradient palette that can be customized via props.
Configurable properties include band count, spacing, thickness, wave amplitude, and animation speed. The canvas handles device pixel ratio for crisp rendering on high-DPI displays. A ResizeObserver keeps the canvas sized correctly.
The component pauses animation when the browser tab is hidden (using visibility change event) and resumes when visible. This saves resources when users switch tabs.
Works well as a hero section background, landing page hero, or anywhere you need a dynamic, colorful background that adds visual interest without distracting from content.


