2.0.2 • Published 2 years ago

glitchy-transforming-text v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

image

Glitchy - A React component for cycling between texts with a glitch effect

Glitchy is a visual React component that allows you to cycle between two texts using a nice glitchy effect. It is a part of a cyberpunk-inspired React library I'm currently working on.

Installation

    npm i glitchy-transforming-text

Getting Started

To start using Glitchy, you can simply import it and use it as a component.

import { Glitchy } from "glitchy-transforming-text";

<Glitchy transitionText="技術スタック">stack</Glitchy>;

Props

  • transitionText: (string) The text you want to transition to. Required.
  • transitionDelay: (number) The delay (in milliseconds) before repeating the entire effect. The default is 4500.
  • displayType: ("inline" | "block") The chosen display. Optional. The default is "inline".
  • className: (string) Optional. Add a classname to the parent div. The default is nothing.
  • randomChars: (string) Optional. The characters to use during the transition. The default is '~!@#$%^&*_-+=[]{}|;:",.<>?/¡£¢∞§¶•ªº–≠œ∑´®†¥¨ˆøπ‘“«åß∂ƒ©˙∆˚¬…æ≈ç√≤≥÷ʡ℅µ№▧▦▤▥▨▩█▪▫☗☖♠♣♧♡♢♤♧♨♪♫♬'
  • typography: _("h1" | "h2" | "h3" | "h4" | "p") Changes the text's wrapper tag. Optional. The default is "p".

Example

<Glitchy
  transitionText="技術スタック"
  typography="h1"
  className="neon"
  transitionDelay={3000}
  randCharDelay={100}
>
  stack
</Glitchy>

Notes

Feel free to fork and submit pull requests

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.11.1

2 years ago

1.11.0

2 years ago

1.10.9

2 years ago

1.10.7

2 years ago

1.10.6

2 years ago

1.10.5

2 years ago

1.10.4

2 years ago

1.10.3

2 years ago

1.10.2

2 years ago

1.10.1

2 years ago

1.9.4

2 years ago

1.9.3

2 years ago

1.9.2

2 years ago

1.9.1

2 years ago

1.9.0

2 years ago

1.8.10

2 years ago

1.8.9

2 years ago

1.8.8

2 years ago

1.8.7

2 years ago

1.8.6

2 years ago

1.8.5

2 years ago

1.8.4

2 years ago

1.8.3

2 years ago

1.8.2

2 years ago

1.8.1

2 years ago

1.8.0

2 years ago

1.7.10

2 years ago

1.7.9

2 years ago

1.7.8

2 years ago

1.7.7

2 years ago

1.7.6

2 years ago

1.7.5

2 years ago

1.7.4

2 years ago

1.7.3

2 years ago

1.7.2

2 years ago

1.7.1

2 years ago

1.7.0

2 years ago

1.6.5

2 years ago

1.6.3

2 years ago

1.6.2

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.6

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.0

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.10

2 years ago

1.2.9

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago