1.0.1 • Published 11 months ago

shiny-text v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Shining Text

A NPM package to display text that shines

The Shining Text component is a React component that adds a dynamic, animated shine effect to text elements. This effect can enhance the visual appeal of text in your application, making it stand out with a glowing, shifting gradient.

Features

  • Dynamic Animation: Customizable shine animation with adjustable duration.
  • Customizable Styling: Allows you to set text color, animation duration, and apply additional CSS classes.
  • Responsive Design: Adapts to different text sizes and adjusts the shine effect accordingly.
PropTypeDescriptionDefault
durationstringDuration of the shine animation."2s"
textColorstringColor of the text. Supports gradient colors."rgba(100, 220, 255, 0.3)"
classNamestringCustom CSS class name for additional styling.""

Installation

To use the Shining Text component in your React application, follow these steps:

  1. Install the Component

    If published on npm, you can install the component using npm or yarn:

    npm install shiny-text
    # or
    yarn add shiny-text
  2. Add to Project

Example

<ShiningText duration="3s" textColor="rgba(0, 55, 255,0.6)" className="text-xl">
          Shiny Text
        </ShiningText>

ScreenRecording2024-08-16at11 45 47AM-ezgif com-video-to-gif-converter

Support

If you find this project useful and want to support my work, please consider buying me a coffee. Your support is greatly appreciated!

Buy Me A Coffee

1.0.1

11 months ago

1.0.0

11 months ago