react-effectz
v1.0.7
Published
๐ญ react effects npm package including some effects in form as components
Downloads
257
Maintainers
Readme
react-effectz
๐ญ react effects npm package including some effects in form as components
๐ Requirements
- React 18.2.0 or later
- Node.js 18.0.0 or later
- (for Next.js) Next.js 13.0.0 or later
๐ฆ Installation
npm install react-effectz
# or
yarn add react-effectz
# or
pnpm add react-effectz
# or
bun install react-effectz
๐ Usage
import { GlitchText } from 'react-effectz';
const App = () => {
return (
<GlitchText text="Hello, World!" className="text-xl" playOnLoop={false} />
);
};
๐ Documentation
Rest will be available soon
GlitchText
import { GlitchText } from 'react-effectz';
const App = () => {
return (
<GlitchText text="Hello, World!" className="text-xl" playOnLoop={true} />
);
};
Props
text
(string): Text to apply glitch effect onclassName
(string): Classname to apply on the textplayOnLoop
(boolean): Play the glitch effect on loopduration
(number): Duration of the glitch effect <(soon)>
๐ Examples
You can find examples on how to use the (currently only GlitchText) in the examples
๐ License
Apache-2.0 License ยฉ Jonas Franke <@binary-blazer>