
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
react-text-typing-animation
Advanced tools
This package allow to you to use text typing animation in reactjs
This package allow to you to use text typing animation in reactjs
to use it you should install npm package, you can run:
npm i react-text-typing-animation
or if you are using yarn:
yarn add react-text-typing-animation
Let's start with a simple example
The code below will type hello world
characters one after another
import './App.css';
import TypingText from 'react-text-typing-animation'
function App() {
const sync=useSyncAnimation()
return (
<div className="App">
<TypingText text={"hello world"} />
</div>
);
}
export default App;
TypingText
ComponentThis is the main component who the responsible for typing animation and have the flowing attributes:
Name | Description |
---|---|
text | the text you apply animation to it . if you want return to line use \n |
className | style of text, css class |
delay | number represent the time to wait before the animation starts in ms |
speed | speed of Animation default value 1 this repsent the gap time between typing two characters : speed * 100ms the highest value of speed get slower animation |
cursor | cursor is the typing cursor default value | |
showCursorEnd | boolean attribute default value false if showCursorEnd is true cursor will stay disable in the end of animation |
reverse | boolean attribute default value false if reverse is true TypingText component will start delete animation after the typing animation end |
deleteSpeed | default value is value of speed like speed this repsent the gap time between delete two characters : 'deleteSpeed * 100ms' the highest value of speed get slower animation |
loop | boolean attribute default value false if loop is true the animation will start again every time is finished |
sync | useSyncAnimation hooks, ths used to synchronized multi animation |
order | number attribute represent the order of execution |
useSyncAnimation () hooks use to synchronized many animation and make them execute one after one
...
const sync=useSyncAnimation();
...
<TypingText text={"first animation"} order={0} sync={sync}/>
<TypingText text={"second animation"} order={1} sync={sync}/>
...
The code above will make second animation start after first animation end
useSyncAnimation execute animations on base of them order, it's started by 0 than 1 , 2 ...
FAQs
This package allow to you to use text typing animation in reactjs
The npm package react-text-typing-animation receives a total of 0 weekly downloads. As such, react-text-typing-animation popularity was classified as not popular.
We found that react-text-typing-animation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.