Shiny Text(002)

A shiny light streak sweeps across the text with customizable gradient reflections.

Hover
Requires:motion
Next-generation interactivity

Installation

$npx kibo add shiny-text

Usage

1import { ShinyText } from "@/components/kibo/shiny-text/component";
2
3export default function MyComponent() {
4 return (
5 <ShinyText
6 text="Next-generation interactivity"
7 className="text-4xl font-bold"
8 color="#737373"
9 shineColor="#ffffff"
10 speed={3}
11 />
12 );
13}

Props Reference

PropTypeDefaultDescription
textstring-The text content to display.
disabledbooleanfalseWhether the animation is disabled.
speednumber2Speed of the animation in seconds.
classNamestring""Additional CSS classes to apply.
colorstring"#b5b5b5"The base color of the text.
shineColorstring"#ffffff"The color of the shiny highlight.
spreadnumber120The spread angle of the linear gradient.
yoyobooleanfalseWhether the animation should reverse direction at the end of each cycle.
pauseOnHoverbooleanfalseWhether the animation should pause when hovered.
direction"left" | "right""left"The direction of the shine sweep.
delaynumber0Delay in seconds before starting the animation (or between cycles).