1.6.1 โ€ข Published 2 years ago

glitch-text v1.6.1

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

NPM JavaScript Style Guide NPM npm GitHub stars npm bundle size

Glitch text for react ๐Ÿ”ฎ

https://user-images.githubusercontent.com/58357980/173233890-9801b49f-5c2b-4f7b-8c0f-b6e6ca0c1f3f.mp4

This nice and simple (1kB) react component can help you add text glitch animation and have some really cool themes, like orange glitch or blue glitch

The glitch is really smooth, I tried to make more distortion but it's looked awful


Install ๐Ÿ’ก:

npm i glitch-text
---
yarn add glitch-text

Usage ๐Ÿ”ฅ:

// don't forget change props
import { GlitchText } from 'glitch-text';

 // orange theme by default 
const App = () => {
  return (
    <div style={{ fontSize: '70px' }}>
     
      <GlitchText theme='orange' text={'There are your text'} />

    </div>
  );
};

Text fully customazible but try use parents tags for styling


Themes ๐ŸŽจ (more coming soon):

Examples ๐Ÿงค (hover on text):


Check here - https://react-next-js-api-auth.vercel.app/

Check here - https://komaroad.netlify.app/


Props ๐Ÿ”ง:

propsrequireddefaultdescription
text(string)yes-text where you want use glitch animation
theme(string)yesorangeglitch color
1.1.0

2 years ago

1.6.1

2 years ago

1.5.1

2 years ago

1.4.1

2 years ago

1.3.1

2 years ago

1.2.1

2 years ago

1.0.0

3 years ago