Saurabh Sharma

Great UI Cyber Glitch Shader

Shaders 13

About

A fullscreen WebGL page transition that applies an RGB-split chromatic aberration glitch effect across the viewport during route changes.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Great UI Cyber Glitch Shader to your project and fits it to your theme.

Code

How Great UI Cyber Glitch Shader is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client"

import { WebglTransitionProvider, useWebglTransition } from "@/components/ui/great-ui-cyber-glitch-shader"

function GlitchControl() {
  const { setShaderMode, triggerTransition } = useWebglTransition()
  return <div className="flex flex-col items-center justify-center gap-6 p-10 select-none"><div className="text-center"><p className="text-sm font-semibold tracking-wide text-neutral-500 dark:text-neutral-400">Cyber Glitch</p><p className="mt-1 text-xs text-neutral-400 dark:text-neutral-500">RGB-split chromatic aberration glitch effect.</p></div><button onClick={() => { setShaderMode("glitch"); triggerTransition() }} className="cursor-pointer rounded-xl bg-neutral-950 px-5 py-2.5 text-xs font-bold text-white shadow-md transition-all hover:bg-neutral-800 active:scale-95 dark:bg-white dark:text-neutral-950 dark:hover:bg-neutral-100">Trigger Glitch</button></div>
}

export default function CyberGlitchShaderPreview() {
  return <WebglTransitionProvider><GlitchControl /></WebglTransitionProvider>
}

More by Saurabh Sharma

View all
  • Great UI Diagonal Marquee Carousel

    Great UI Diagonal Marquee Carousel

    840
  • Great UI Macbook Mockup

    Great UI Macbook Mockup

    251
  • Great UI Mobile Mockup

    Great UI Mobile Mockup

    206
  • Great UI Vinyl Album Card

    Great UI Vinyl Album Card

    160
  • Great UI Animated Select

    Great UI Animated Select

    98
  • Great UI Deployment Checklist

    Great UI Deployment Checklist

    83
  • Great UI Revision Timeline

    Great UI Revision Timeline

    81
  • Great UI Terminal Loader

    Great UI Terminal Loader

    67

More in Shaders

View all
  • Glass Fold

    Glass Fold

    549
  • Shader Animation

    Shader Animation

    3.9K
  • Stream Search

    Stream Search

    49
  • Lissajous Nebula

    Lissajous Nebula

    15
  • DitheredShaderBackground

    DitheredShaderBackground

    55
  • Stripe like gradient-shader

    Stripe like gradient-shader

    276
  • Paper design shader Background

    Paper design shader Background

    710
  • Neural Noise

    Neural Noise

    766

Explore more

Part of Great UI — browse the full library on 21st.dev.