Kinetic UI
Back to Introduction
Text Effects

Shiny Text

A lightweight, CSS gradient animation that sweeps across text to create a metallic or glowing shine effect.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add shiny-text

The ShinyText component uses Framer Motion and background-clip: text to animate a linear gradient across text. It's perfect for highlighting premium features, drawing attention to calls-to-action, or adding subtle polish to headings. Now updated with 4 built-in animation variants.

Live Preview

Shiny Text

Premium Features

Standard Shine:A smooth, 3-second linear gradient shine that slides across the text.

Installation

npx kinetic-ui-cli@latest add shiny-text

Usage Guide

1. Import the Component

Import the component into your React or Next.js page:

import { ShinyText } from "@/components/creative/shiny-text";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { ShinyText } from "@/components/creative/shiny-text";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <ShinyText
        text="example"
        speed{10}
        shimmerWidth{10}
      />
    </div>
  );
}
Performance Notes
  • Uses CSS hardware acceleration via GPU transform-binds.
  • Damped interpolation minimizes paint-redraw flashes.
  • Tree-shakable import: only compiles elements requested.
Accessibility Notes
  • Full keyboard focus-ring navigation support (`Tab`/`Shift+Tab`).
  • ARIA roles mapped correctly for assistive screen readers.
  • Respects `prefers-reduced-motion` system toggles.