Spectra UI
ShowcaseBackgrounds

Retro Grid

An animated scrolling retro grid effect

Retro Grid

Installation


npx spectraui-cli add globe

Update tailwind.config.ts

Add the following animations to your tailwind.config.ts file:

/** @type {import('tailwindcss').Config} */
module.exports = {
  theme: {
    extend: {
      animation: {
        grid: "grid 15s linear infinite", 
      },
      keyframes: {
        grid: { 
          "0%": { transform: "translateY(-50%)" }, 
          "100%": { transform: "translateY(0)" }, 
        }, 
      },
    },
  },
};

Props


PropTypeDefault
className
string
-

On this page