react-jumping-text
v1.0.8
Published
A npm package that allows the texts to animate like jumping when hovered, or on initial load
Downloads
44
Maintainers
Readme
Awesome React Jumping Text
react-jumping-text
Add stylish text jumping animation to your React components effortlessly with this package. Customize the shadow effect using provided options and enhance the visual appeal of your application's text elements.
Demo
https://vkushal28.github.io/react-jumping-text/
Installation
You can install react-jumping-text
with NPM to your project.
npm i react-jumping-text
Or find out more info on it here
Usage
import "react-jumping-text/dist/jumpingText.css";
import { JumpingText } from "react-jumping-text";
function App() {
return (
<JumpingText text="This Is A Demo Text" />
)
}
Options / Props
| Prop name | Prop Type | Default Value |
| --------------- | --------- | ------------- |
| text | string | Content Cell |
| background | string | empty / null |
| textColor | string | white |
| fontSize | string | 40px |
| highlightOnLoad | boolean | false |
| textShadow | string | -20px 10px 10px rgba(0, 0, 0, 0.3), 0 20px 50px rgba(0, 0, 0, 0.3) |
| letterSpacing | string | -2px |
Contributing
This is my first contribution to npm package :) Would love you all to contribute to this project, just fork the repo, add your creativity and submit a PR ❤️ :)
Feedback
Bugs are logged using the github issue system. To report a bug, simply open a new issue
Visuals
https://github.com/vkushal28/react-jumping-text/assets/17496336/33b82000-d9d8-4ca1-8281-fd6b281ee66a
Authors
- Kushal Verma - Portfolio - here
References
- ChatGPT - for obvious reasons
- https://davidhellmann.com/
NOTE: If animation doesn't work, make sure you have included import "react-jumping-text/dist/jumpingText.css";
at the top of your imports.