
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
supertext-react
Advanced tools
React-SuperText is a versatile React component library that provides three unique text animation and display components: TypingText, LastWordTypingText, and Marquee. With React-SuperText, you can effortlessly add captivating text effects to your web appli
Supertext-react is a versatile React component library that provides three unique text animation and display components: TypingText
, LastWordTypingText
, and Marquee
. With Supertext-react, you can effortlessly add captivating text effects to your web applications. This README will guide you through how to use each component and explain the available props and their functionalities.
To use Supertext-react in your project, you can install it via npm or yarn:
npm install Supertext-react
or
yarn add Supertext-react
TypingText
is a component that simulates typing animation. It progressively displays text from an array with optional customization.
import React from 'react';
import { TypingText } from 'Supertext-react';
function MyComponent() {
const texts = ["Hello, world!", "This is Supertext-react.", "Enjoy the animations!"];
return (
<TypingText
textArray={texts}
typingSpeed={50} // Speed of typing in milliseconds per character
loop={true} // Loop through the textArray
fontSize="24px"
fontWeight="bold"
color="black"
className="custom-typing-text"
triggerOnce={true} // Only trigger once on initial render
/>
);
}
Props for TypingText
Component:
textArray
(Array):
typingSpeed
(Number):
loop
(Boolean):
textArray
once it reaches the end.fontSize
(String):
fontWeight
(String):
color
(String):
className
(String):
triggerOnce
(Boolean):
LastWordTypingText
is a component that types out the last word in a sentence, providing a unique effect.
import React from 'react';
import { LastWordTypingText } from 'Supertext-react';
function MyComponent() {
return (
<LastWordTypingText
text="This is a simple example."
typingSpeed={150}
loop={false}
lastWords={["example.", "component.", "effect.", "features."]}
fontSize="24px"
fontWeight="bold"
color="blue"
className="custom-text"
/>
);
}
Props for LastWordTypingText
Component:
text
(String):
typingSpeed
(Number):
lastWords
(Array):
loop
(Boolean):
lastWords
once it reaches the end.fontSize
(String):
fontWeight
(String):
color
(String):
className
(String):
Marquee
is a component that creates a scrolling text effect.
import React from 'react';
import { Marquee } from 'Supertext-react';
function MyComponent() {
return (
<Marquee
text="This is a scrolling text."
speed={1} // Speed of scrolling (higher value means slower)
fontSize="24px"
fontWeight="bold"
color="blue"
className="custom-marquee"
pauseOnHover={true} // Pause scrolling on hover
scrolldirection="right" // Direction of scrolling ('right' or 'left')
/>
);
}
Props for Marquee
Component:
text
(String):
speed
(Number):
fontSize
(String):
fontWeight
(String):
color
(String):
className
(String):
pauseOnHover
(Boolean):
scrolldirection
(String):
"right"
or "left"
.These props allow you to customize the behavior and appearance of each Supertext-react component according to your specific requirements.
For more examples and usage details, you can refer to the demo link procided bellow.
Enjoy using Supertext-react to add engaging text animations and effects to your React applications! If you encounter any issues or have suggestions for improvement, please feel free to open an issue on the GitHub repository.
FAQs
SuperText-react is a versatile React component library that provides three unique text animation and display components: TypingText, LastWordTypingText, and Marquee. With SuperText-react, you can effortlessly add captivating text effects to your web appli
The npm package supertext-react receives a total of 5 weekly downloads. As such, supertext-react popularity was classified as not popular.
We found that supertext-react 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
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.