Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ivan-corporation/glitch-text

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 ๐Ÿ”ฎ
https://github.com/ivan-corporation/glitch-text

animation css distortion-effects glitch glitch-effect glitching hover-effects nextjs npm-module npm-package react scss text text-animation

Last synced: 1 day ago
JSON representation

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 ๐Ÿ”ฎ

Awesome Lists containing this project

README

        

[![NPM](https://img.shields.io/npm/v/glitch-text.svg)](https://www.npmjs.com/package/glitch-text)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
![NPM](https://img.shields.io/npm/l/glitch-text)
![npm](https://img.shields.io/npm/dm/glitch-text)
![GitHub stars](https://img.shields.io/github/stars/Ivan-Corporation/glitch-text?style=social)
![npm bundle size](https://img.shields.io/bundlephobia/minzip/glitch-text)

# 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 ๐Ÿ’ก:
```bash
npm i glitch-text
---
yarn add glitch-text
```

## Usage ๐Ÿ”ฅ:
```jsx
// don't forget change props
import { GlitchText } from 'glitch-text';

// orange theme by default
const App = () => {
return (




);
};
```
Text fully customazible but try use parents tags for styling

I'm recommend use `50px - 100px range` for more beauty effect

___

## Themes ๐ŸŽจ (more coming soon):


  • orange - (by default)

  • blue

  • green

  • red

  • white

  • purple

## 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 |

npm - https://www.npmjs.com/package/glitch-text