asanshay

Shader Loader

Shaders 67

About

An animated loading spinner rendered with a custom WebGL fragment shader, with 3 shapes (sphere, swirl, ripple) and 3 visual styles (plain, blur, dither).

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

Code

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

Usage.tsx

"use client";

import * as React from "react";
import { Loader } from "@/components/ui/loader";

export default function LoaderDemo() {
  const speed = 1;

  return (
    <div className="flex items-center justify-center gap-6 overflow-x-auto p-8">
      <Loader shape="sphere" variant="blur" color="#0ea5e9" speed={speed} />
      <Loader
        className="dark:hidden"
        shape="swirl"
        variant="plain"
        size="sm"
        color="#0a0a0a"
        speed={speed}
      />
      <Loader
        className="hidden dark:block"
        shape="swirl"
        variant="plain"
        size="sm"
        color="#ffffff"
        speed={speed}
      />
      <Loader shape="sphere" variant="dither" color="#ea580c" speed={speed} />
      <Loader shape="ripple" variant="blur" color="#e879f9" speed={speed} />
      <Loader
        shape="swirl"
        variant="dither"
        size="sm"
        color="#e11d48"
        speed={speed}
      />
    </div>
  );
}

More by asanshay

View all
  • Chat Reasoning

    Chat Reasoning

    131
  • Motion Blur Text

    Motion Blur Text

    36
  • Reveal

    Reveal

    14
  • Chat Tool

    Chat Tool

    10
  • Chat Message

    Chat Message

    7
  • Page Header

    Page Header

More in Shaders

View all
  • Glass Fold

    Glass Fold

    212
  • Neural Noise

    Neural Noise

    717
  • Wave

    Wave

    685
  • LightSpeed

    LightSpeed

    207
  • animated pattern cloud

    animated pattern cloud

    616
  • Background Shader

    Background Shader

    304
  • Shader Background

    Shader Background

    2K
  • Line Shader Homlu UI

    Line Shader Homlu UI

    48