0.0.4 • Published 6 years ago

react-text-glitch v0.0.4

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

React Text Glitch

React component to add glitch effect to your text, in a whole word or letter by letter. Demo

Install

  yarn add react-text-glitch

Usage

  // Glitch whole word
  import TextGlitch from 'react-text-glitch'

  <TextGlitch>WOW! I`m cool</TextGlitch>
  // Letter by letter on hover
  import TextGlitch from 'react-text-glitch'

  <TextGlitch letter>WOW! I`m cool</TextGlitch>

Options

propdescriptiondefault
textStyleThe style applied to text
wrapperStylesThe style applied to text wrapper
letterfalse for whole word glitch/true for letter-by-letterfalse
asThe role for html text elementp

Contribute

Everything is welcome

License

Do whatever you want

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago