GSAP WebGL & Canvas Effects

Over 47

Effects that draw to a canvas instead of to the DOM. Shaders, particle systems, mesh distortion and soft-body physics; GSAP handles matchMedia, teardown and any played values, and the renderer reads them each frame. 47 effects, 1 free, no build step.

The Vault. Every item in the library, including the Vault exclusives, and everything added to it.

Browse effects

47 effects

    Quick view

    Loading demo

    Building WebGL and Canvas Effects with GSAP

    There is a ceiling to what CSS can do. Transforms and filters are fast and they compose well, but they operate on whole elements: you cannot bend the middle of an image, pull its colour channels apart along an edge, or push ten thousand particles around a flow field. At that point the work moves to a canvas, and GSAP changes job.

    In a DOM animation GSAP writes styles. In a canvas or WebGL animation it does not touch the page at all: where a value is played (a reveal, a click, a scroll scrub) GSAP animates a plain number and the render loop reads it; where a value is continuous (pointer, velocity, time) the loop integrates it itself, and some effects here use GSAP only for matchMedia and cleanup. Each README says exactly which. The renderer stays your own code.

    The effects below split into two groups. Most compile real shaders and run on the GPU, which is what makes per-pixel work like spectral dispersion, fluid surfaces or mesh distortion affordable. The rest use the 2D canvas API, which is simpler, has no shader compilation step, and is usually the right choice for particles, halftone screens and physics.

    Both carry a cost the DOM does not: a canvas is invisible to screen readers, WebGL holds GPU memory that has to be released by hand, and WebGL contexts are capped per page. Every effect here therefore ships an explicit teardown and respects reduced motion.

    WebGL & Canvas at a glance

    Compare the 47 webgl & canvas in this category by what they do, technique, and difficulty.
    Effect What it doesBuilt withDifficulty
    Stained Glass Window Light Effect A leaded stained-glass window that throws coloured sunlight across your page; scroll moves the sun and the pools slide, stretch and soften. ScrollTrigger, webgl-shader advanced
    Prism Glass Hero A WebGL launch hero with a solid 3D glass object floating over your own headline and photograph, refracting them with real per-channel dispersion. webgl-shader advanced
    Gooey Liquid Nav A navigation bar whose active indicator is one body of glossy liquid. webgl-shader advanced
    3D Physics Background A full-bleed pile of satin ceramic 3D pieces with real mass. webgl-shader advanced
    Datamosh Transition A WebGL image slider that changes slide like a broken video file: drag sideways and the current photograph is dragged along in square macroblocks, the next one surfaces in its colours, then the frame heals block by block in a stepped sweep. webgl-shader advanced
    RGB Split Infinite Canvas An endless WebGL field of photographs you drag in any direction, with no walls: at speed every print splits into red, green and blue reads along its own direction of travel, while the print under your hand lifts and stays sharp. webgl-shader advanced
    Spotlight Background A theatrical GSAP and WebGL spotlight background: two stage follow-spots in a hazed room sweep in from the wings, cross over your headline and land on it, then trail the cursor like spots worked by an operator. webgl-shader advanced
    Jack-o'-Lantern Light A photographic jack-o'-lantern with real 3D form that is the light source for your page: its candle flickers across real content, nearer elements glow brighter and every card casts a soft shadow away from the flame. webgl-shader advanced
    Inflatable Type A headline of glossy, air-filled 3D balloon letters on curling ribbon strings. webgl-shader advanced
    Shadow Assembly Drag a low spotlight freely across the floor to reshape the word or monogram cast by a suspended matte black sculpture. webgl-shader advanced
    Fogged Glass Reveal Look through a rain-covered window into a misty forest. webgl-shader advanced
    Sand Reveal Brush uneven mounds of pale sand across a graphite board, leaving fine grain trails and gathering material into shaded piles. canvas advanced
    Scratch Card Reveal Scratch silver foil to reveal a photograph or discount code. canvas intermediate
    Product Configurator An interactive 3D speaker with tactile rotation, three cabinet finishes, a removable grille and guided views of its controls, drivers and connections. webgl-shader advanced
    ASCII Focus A photographic character field that resolves into finer glyphs and a clear image as a focus lens moves across it. webgl-shader advanced
    Contour Landscape Sculpt a lit three-dimensional landscape with a press or drag, as charcoal contours wrap around the rising terrain. webgl-shader advanced
    Metal Fold A sculpted metal sheet that dents under your pointer, bending brushed silver and copper reflections across its folds. webgl-shader advanced
    Ferrofluid Magnet Beads of glossy black ferrofluid scattered across a hero: your cursor is an invisible magnet that tugs gently on hover; press and hold to pull the fluid into a spiked pool (or shove it clear in repel mode), then let go to throw it outward. webgl-shader advanced
    Water Pebbles A hero background of clear, shallow water over a pale stone floor, with smooth river pebbles on the bottom seen through the ripples. webgl-shader advanced
    Liquid Ripple Image A WebGL water ripple for any image: drag across it and rings of waves spread from the pointer, cross and interfere, bending the picture, then settle to a calm pool. webgl-shader advanced
    Threaded Image Slider A photographic slider with a fuller row of images and restrained threads that fan vertically at the edges, with touch dragging, momentum and centre snapping. webgl-shader advanced
    Ink Fluid Reveal Stir a photograph like ink in water. webgl-shader advanced
    Laptop Screen Scroll A laptop opens on scroll, fills the viewport, then becomes the live website you keep scrolling through. ScrollTrigger, webgl-shader advanced
    Phone Screen Scroll A real 3D phone, built in three.js, stands pinned in the page and turns as you scroll: front, three-quarter, edge-on, then the back with its camera module, while its screen changes between your screenshots. ScrollTrigger, webgl-shader advanced
    Lenticular Card Tilt a ridged card to reveal an alpine lake from day to night, with optical interlacing, moving plastic highlights and a physical settle. webgl-shader advanced
    Prismatic Border Glow A soft multicolour border that blooms inward and sends paired ripples around rounded edges on edge movement, click or tap. webgl-shader advanced
    Warp Portfolio Reel A seamless vertical portfolio carousel that bends into a sculptural photo ribbon as you scroll or drag, with a crisp project link on every slide. webgl-shader advanced
    Lens Slider Wall An infinite wall of sliding photographs that bow through a velocity lens and lift seamlessly into a large viewer. webgl-shader advanced
    Particle Morph Text A headline made of tens of thousands of GPU particles that dissolves in a gust and re-forms as the next word on click, while the cursor blows through the letters like wind. webgl-shader advanced
    Curved Ribbon Slider A full-bleed WebGL slider driven by the scroll wheel. webgl-shader advanced
    Elastic Photo Mesh Interactive rubberized photo mesh: click, drag, or sweep across any image to stretch and warp the canvas texture with spring-mass physics, elastic tension, and gelatin reverberations. canvas advanced
    Funhouse Portrait Inflate noses, squeeze faces and twist smiles with a playful three.js portrait filter that springs back on release. webgl-shader advanced
    Reactive Face Mesh Pull any part of a portrait out like taffy and the face reacts: eyes follow your hand, widen in surprise, blink as it snaps back. webgl-shader advanced
    Pixel Sort Drag A WebGL pixel sort you paint with the pointer: drag across a photograph and the pixels in your wake smear into luminance-sorted streaks, fine on a slow move and torn wide open on a fast flick, then relax back into the clean image. webgl-shader advanced
    Slit-Scan Stretch A full-bleed photograph read through a moving slit, like a 1970s photo-finish camera: sweep across it and the picture smears into long streaks that trail the pointer's path, fringed with colour, then retract into the slit and settle. webgl-shader advanced
    Liquid Morph Hover Effect A GSAP liquid morph hover effect in WebGL: photographs melt into thick, glossy liquid that sags, smears and drips, then pull back together crisp. webgl-shader advanced
    Liquid Fill Reveal A scroll-scrubbed liquid fills a frame behind your content, with a simulated wave surface that sloshes on a fast scroll and inverts everything below the waterline. ScrollTrigger, scrub advanced
    Cloth Drape A hanging fabric banner you can grab, drag and swing: a soft-body cloth simulation that warps your artwork across it and shades its own folds. physics advanced
    Canvas Particle Flow An ember-toned Canvas 2D flow field that bends into a dense wake around pointer, touch, and keyboard attraction before dispersing organically. canvas advanced
    Canvas Shape Vortex A photoreal spiral galaxy on a 2D canvas: logarithmic arms, clustered star fields, additive bloom and diffraction spikes, flown by scroll and pointer with no WebGL. ScrollTrigger, canvas advanced
    Interactive Halftone Image An image rendered live as a halftone dot grid the pointer drags through: dots swell, smear along the stroke and split into misregistered ink at speed, then settle back elastically. canvas advanced
    Fracture Reveal Shatter any element into real Voronoi shards from the point you hit, then watch them reassemble with no seam left behind. clip-path advanced
    Scroll Image Sequence Cinematic canvas frame scrubbing with an expanding aperture, synchronized caption crossfades, and reversible scroll progress. ScrollTrigger, scrub intermediate
    Silk Background A GSAP and WebGL silk background: a sheet of satin drifts in slow folds behind your content, the pointer moves the light across its sheen, and press and hold sends ripples out under the cloth. webgl-shader advanced
    Dither Background A GSAP and WebGL dither background: a lit sphere drawn in 1-bit Bayer dots, the pointer is the light, and a click inverts paper and ink through a stepped dissolve that doubles as a light/dark theme switch. webgl-shader advanced
    Warp Speed Background A GSAP and WebGL starfield background the visitor flies: stars drift quietly behind your content, press and hold stretches them into streaks, and release jumps to warp speed before a long deceleration back to drift. webgl-shader advanced
    35mm Film Strip Gallery A WebGL photo gallery on a strip of 35mm film running between two spinning rolls that fill and empty as you browse: frames sit as negatives and develop into the photograph at the centre, with momentum, motion blur and a lightbox. webgl-shader advanced

    Frequently asked questions

    Do I need to know WebGL to use these effects?

    No. Each effect ships as a drop-in script with its configuration exposed as data attributes, so you can change the framing, the intensity and the behaviour without touching a line of GLSL. The shader source is included and commented if you do want to go further.

    What does GSAP actually do in a WebGL animation?

    It animates numbers rather than styles. Your render loop reads those numbers each frame and draws accordingly, so GSAP supplies the easing, timelines, responsive branching via matchMedia and the cleanup, while the drawing stays entirely your own code.

    Are canvas and WebGL effects accessible?

    A canvas is a single opaque element to a screen reader, so the content inside it has to exist somewhere else too. Every effect here renders over real markup and only hides it once the canvas is running, which means the same markup serves visitors without JavaScript, without WebGL, and with reduced motion turned on.

    Will these run on mobile?

    Yes. They cap the device pixel ratio, which is the single biggest cost on a high-density phone display, and most of the continuously animating scenes stop rendering when they scroll off screen. Test the one you choose on a mid-range phone, since GPUs vary far more on mobile than on desktop.

    Do WebGL effects leak memory?

    They do if you let them. Geometries, materials, textures and the context itself all hold GPU memory that dropping a reference does not release, and browsers cap how many live contexts a page may hold. Every effect here exposes a teardown that releases all of it, which is what you call on an SPA route change.