Platform
VaultVault
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
ButtonsPart of ProButtons
IconsPart of ProIcons
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
SavedPart of ProSaved
Support
DocumentationDocumentation
MCP serverMCP server
SettingsSettings
VaultGallery & imagesCRT Glitch Hover
Lagging Column GridBrowse all 182Curtain Wipe Slider
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
Sign inSign in

Start free. The code for 15 components, no card needed.

Get 15 free

CRT Glitch Hover

This one is locked. Become a member to open the code for it and the rest of the Vault.

See plansTry the 15 free ones

What you'll need.

Install

  • gsap
  • three

Setup

npm i gsapregisterPlugin(three)

More like this

  • Glitch
  • Canvas
  • WebGL

Features.

  • A full-screen picture through old CRT glass: barrel curve, rounded screen corners, a dark bezel with a little halation
  • Scanlines, a phosphor vignette and a faint colour fringe, all still at rest
  • Hover and the signal sputters out: jittering lines, tearing bands, vertical slip, snow and colour split
  • The breakdown leans away from the side the pointer is on
  • Leave and it settles back to a clean picture
  • Draws only while the signal is changing; a still screen costs nothing
  • Plain <img> fallback without WebGL or when the picture can't reach the canvas
  • Respects prefers-reduced-motion: one clean still frame, no glitch
  • The whole-frame flicker is held to 3 times a second for photosensitive viewers

How to get it right.

Load GSAP and three.js first

The script reads window.gsap and window.THREE. Load both before code.js. Without them, the plain picture stays.

Host the picture with CORS

The canvas can only draw pictures it may read. Same-origin paths always work; a picture on another host needs Access-Control-Allow-Origin. If it's refused, the console says so and the plain picture stays.

Pick a picture with a clear subject

The picture is cover-fitted to the screen, and the bezel and curve eat into the edges. Keep the subject near the middle. A large landscape picture around 1920px wide is plenty.

Keep the signal loss modest

data-au-peak is how far the signal breaks at full hover. 0.25 reads as a weak broadcast; past 0.5 the picture is mostly noise. data-au-sputter sets how long the stutter takes to get there.

Retheme with variables

--crt-bezel colours the glass surround (read once at init). --crt-bg is the page behind the fallback picture and --crt-fg the caption.

Caption is optional

It ships without one. To add it, put <figcaption class="crt_caption"> inside the figure, after the image (React: caption).

Variations.

  • Broadcast — the default: peak 0.25, curve 0.07, scanlines 0.45
  • Dead channel — data-au-peak="0.55", data-au-sputter="0.5" for a hard, fast breakdown
  • Flat panel — data-au-curve="0", data-au-scanlines="0.15" for a modern screen that still glitches
  • Slow fade — data-au-sputter="2" so the signal drifts out over two seconds

Where it fits.

  • Hero for a film, music or games site — a picture that feels transmitted
  • Case study cover — one key image with a moment of play on hover
  • Archive or retro sections — old footage, broadcasts, found media
  • 404 page — the signal lost, literally

Frequently asked.

The canvas couldn't start. Check that gsap and three load before the script (the console says [oomph] CRT Glitch: gsap or three.js not found after 10 seconds), that the picture is same-origin or served with CORS, and that the browser has WebGL.

Briefly. Pointer enter and leave drive it, and a finger enters on touch-down and leaves on lift, so a press sputters while held and settles once you let go. It's built for hover first.

The breakdown is tied to hover. To start it from script, dispatch a pointerenter event on the root; it holds until a pointerleave.

Yes. Set any width and height on .crt_screen; the canvas follows the root's size and the picture is cover-fitted to it.

Change the src on [data-crt-image] and call window.au.CrtGlitch.refresh(el).

Related components.

Pro

File Drawer Cards

Hover

Pro

Capsule Image Hero

Click

Pro

Depth Fly-Through Hero

Load