Giter Site home page Giter Site logo

aishwaryvishwakarma / react-text-glitch Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 30 KB

This is a npm package which can be added to React projects. Check Readme for more information ❤

Home Page: https://codesandbox.io/s/react-text-glitch-effect-z64rlc?file=/src/App.js

License: MIT License

TypeScript 100.00%
npm-package reactjs text-effect

react-text-glitch's Introduction

react-text-glitch-effect

Install

npm install react-text-glitch-effect

Usage

import React from 'react';
import {TextGlitchEffect} from 'react-text-glitch-effect';

function App() {
  return (
    <TextGlitchEffect
      text='React Text Glitch Effect'
      speed={40}
      letterCase='lowercase'
      includeSpecialChars
    />
  );
}

export default App;

Note

Try to use monospace fonts in case of alphabets or alphanumeric type, as the letters having different width may not look good.

Demo

Click here for demo

Properties

Property Type Default Description
text String The text which will have the glitch effect.
speed Number 30 The speed at which the letters change (in ms)
letterCase lowercase or uppercase uppercase The letter case which can be used.
className String Text styles.
type alphabets, numbers, specialchars or alphanumeric alphabets The type can be used to set which letters to show when the effects run.

react-text-glitch's People

Contributors

aishwaryvishwakarma avatar

Stargazers

 avatar dais avatar Himanshu Singh avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.