1.0.2 • Published 4 years ago

splash-text v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

splash-text

SplashText adorns your application with a splash of color when the user hovers their mouse over text!

Installation

npm install --save splash-text

Usage

SplashText is configured entirely through its props.

PropTypeDescription
baseColorstringDefines the default text color
durationnumberDuration (in seconds) the animation will last
enterColorsarray<string>Defines the colors and order of the color rings
intervalnumberInterval (in milliseconds) between color rings
textstringText to be displayed
textStyleobjectstyling to be applied to the text

Example

  <SplashText
    enterColors={[
      '#3333FF',
      '#8833FF',
      '#FF3388',
    ]}
    baseColor='#FFFFFF'
    interval={200}
    duration={2}
    textStyle={{
      fontSize: 100,
    }}
    text='This is text'
  />

Quick Demo :)

1.0.2

4 years ago