Skip to content
animorio
IT
Back to the library

Render loader

WebGL, HoverWebGL, GSAPAdvancedCompressed weight: Demo 10 KBGSAP 28 KBFreeDownload the zip

A WebGL animation in the premium style of Dribbble shots: the loading panel of the render in an AI video app, made of dark frosted glass, with a warm light behind it. A hand-written GLSL shader draws the rays escaping past the panel's edge like an eclipse, the glow coming through the glass, the edge lighting up on the side facing the light and the dust floating in the beams. The progress bar is a slit cut through the glass: as the render goes on it opens and the light shines through it, throwing thin beams across the panel. The light slides behind the edge towards the pointer on a spring, Pause dims it, at 100% it swells and the button becomes Open render.

The code

A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN. The React and Vue tabs hold the same demo as a ready component, which switches its animations off when it leaves the page.

<!doctype html>
<!--
  "Render loader" from Animorio · https://animorio.com
  License: free on your own sites and your clients’ sites, paid work included.
  Not for resale, redistribution, templates or code collections · https://animorio.com/en/license/
-->
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>The render loader with the light rays from behind</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage" data-stage>
    <!-- the render panel of an AI video tool, frosted dark glass on a near black page. A warm light sits behind it:
         a WebGL shader marches from every pixel towards the light and draws the rays that slip past the panel's
         edge, the glow seen through the frosted glass and the beams that leak through the progress slit -->
    <div class="panel" data-panel>
      <canvas class="panel__rays" data-canvas aria-hidden="true"></canvas>
      <span class="panel__glow" data-glow aria-hidden="true"></span>
      <article class="panel__card" data-card>
        <header class="panel__head">
          <span class="panel__brand">
            <svg class="panel__mark" viewBox="0 0 20 20" aria-hidden="true">
              <rect x="0.75" y="0.75" width="18.5" height="18.5" rx="5.5"/>
              <path d="M4.6 13.2a5.4 5.4 0 0 1 10.8 0"/>
              <path d="M3.6 13.2h12.8"/>
            </svg>
            Lumen Studio
          </span>
          <span class="panel__chip">4K, 24 fps</span>
        </header>
        <h1 class="panel__title"><span data-title>Rendering “Low tide”</span></h1>
        <p class="panel__prompt">A coastline at dusk, long lens, slow push in over wet sand.</p>
        <div class="panel__slit" data-slit aria-hidden="true"><span class="panel__fill" data-fill></span></div>
        <div class="panel__stats">
          <span class="panel__frames"><span class="panel__num" data-frame>0</span> of 960 frames</span>
          <span class="panel__pct"><span class="panel__num" data-pct>0</span>%</span>
        </div>
        <footer class="panel__foot">
          <span class="panel__eta" data-eta>0:38 left</span>
          <button class="panel__btn" type="button" data-btn>
            <span class="panel__btn-face" data-face>
              <svg class="panel__btn-icon" viewBox="0 0 16 16" aria-hidden="true">
                <path class="panel__pause" data-pause d="M5.6 4.2v7.6M10.4 4.2v7.6"/>
                <path class="panel__play" data-play d="M5.4 3.9l6.6 4.1-6.6 4.1z"/>
                <path class="panel__check" data-check pathLength="1" d="M3.4 8.4l3 3 6.2-6.6"/>
              </svg>
              <span class="panel__btn-words" data-words>Pause</span>
            </span>
          </button>
        </footer>
      </article>
    </div>
    <p class="sr" aria-live="polite" data-live></p>
  </main>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="script.js"></script>
</body>
</html>

Playground

Change values, colours and text with the controls and watch the animation respond live. Or write in the code yourself. Then download the folder with your changes.

30 values to change

Or ask your AI assistant for it

With the Animorio connector, Claude Code, ChatGPT, Cursor or VS Code take it from here, guide included, and fit it into your project. Paste this request:

Take “Render loader” from Animorio and fit it into my site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On a near black page a panel of dark frosted glass rises slowly, with round corners, a very fine grain and a one pixel edge: at the top the made-up brand Lumen Studio with its rising sun mark and a ‘4K, 24 fps’ capsule, then the title ‘Rendering “Low tide”’, the description of the shot in grey, a thin slit cut through the glass, below it the frames done out of 960 and the percentage, at the bottom the time left and the Pause button. Behind the panel stands a warm amber light: it peeks just past the top edge like a sun behind a wall and throws rays that fan out over the page, longer where the edge is closer, with a violet haze far out and dust rising slowly in the beams. Through the glass the light shows as a soft glow, and the panel's edge lights up only on the side facing it. As the render goes on the light walks along the top edge from left to right and the slit opens: where it is open the light comes through, the slit becomes a lit line and throws thin beams across the panel that tremble a little, while the frames, the percentage and the time count. Fast at first, calmer in the middle, quick at the end: at 100% the light swells and the rays stretch for an instant, the title becomes ‘Low tide is ready’, the button turns light with a check drawing itself and the words Open render. Then the light dims, the slit closes and the render starts again. With the mouse the light slides behind the edge to the point nearest the pointer, above, at the side or below, on a spring that passes the mark and settles, so the rays always come out on that side, and over the panel it grows stronger; Pause gives under the finger and springs back, dims the light and stops everything, Resume starts it again.

How it works

Three layers

The panel's body is a pseudo-element under everything (gradient, feTurbulence grain, edge and layered shadows), above it the WebGL canvas, wider and taller than the panel so the rays can reach the page, and on top the words and the button.

The rays march to the light

For each pixel the shader takes thirty steps along the line to the light and adds up how much light there is at each point times how much of it the panel does not cover (the signed distance from the rounded rectangle: all of it outside, a small share through the glass). The average, damped with distance, is the rays; a random start per pixel removes the stepped bands and becomes grain.

The slit and the beams

The progress bar is not drawn: it is the place in the glass where all the light gets through, as wide as the render. For the beams on the panel the shader does not march but works out where the line from the pixel to the light crosses the slit's row: if it lands in the open part it adds the light at that point, fading over 46 pixels.

A spring for the light

The light chases the point of the edge nearest the pointer (13 pixels inside, so it always peeks out), or its walk along the top edge following the render, on a spring integrated by hand in two steps per frame (stiffness 120, damping 15). The intensity has its own spring too, and when paused it drops to 60%.

The render and the success

A GSAP timeline takes the value from 0 to 1 in three stretches at different paces; every frame turns it into the frames, the percentage, the time and the width of the slit. At 100% a second timeline swells the light in 0.16 s and brings it down in 1.5 s, the words change with a blur and the check draws itself with pathLength.

Values to change

NameFileDefaultWhat it changes
RAYSscript.js1How strong the rays around the panel are.
REACHscript.js210How far the rays reach over the page, in pixels.
SIZEscript.js34How big the light behind the panel is, in pixels.
FROSTscript.js0.2How much light the frosted glass lets through.
DUSTscript.js0.6How much dust floats in the beams.
STIFFNESSscript.js120The spring pulling the light to the pointer: higher is quicker.
DAMPINGscript.js15Lower lets the light pass the mark and come back.
RENDERscript.js6.2How many seconds the render takes, from 0 to 100%.
FRAMESscript.js960How many frames the render has.
LOOPscript.jstrueRenders again by itself, forever.

Try them in the Playground

When to use it

For the panel that follows a long job in an AI app: rendering a video, generating images, exporting a project. The light coming through the slit tells how far it has got without shouting, and the panel stays the centre of the page.

On phones

The same animation with adapted sizes: the panel is as wide as the box allows, the margins shrink with the height, the rays spread over the page only as far as there is room, and a finger takes the light where it touches.

With reduced motion

The light does not move: it stays still behind the middle of the top edge and fades in and out, with no dust; the slit opens and the numbers count, the words and the check change with a fade.

Pitfalls

  • If the light sits wholly behind the panel no rays show: that is why the light has a long tail beside its core and its walk runs close to the top edge, so some of it always peeks out.
  • A three pixel slit cannot be found by marching thirty steps: the beams would come out dotted. The crossing with its row is computed instead, a single division and no noise.
  • With premultipliedAlpha the alpha must be at least the strongest colour, or the colours burn out: here the alpha is the largest of the three channels.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 10 KB; the libraries: GSAP 28 KB.

Testing

Tested on 2 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

Use it in your own projects and in your clients’ projects. Do not resell it or redistribute it as is. GSAP stays under its own Standard license. Full license.

All animations