1.6.1 โข Published 4 years ago
glitch-text v1.6.1
Glitch text for react ๐ฎ
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-textUsage ๐ฅ:
// 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 ๐ง:
| props | required | default | description |
|---|---|---|---|
| text(string) | yes | - | text where you want use glitch animation |
| theme(string) | yes | orange | glitch color |