alexmacarthur / typeit-react Goto Github PK
View Code? Open in Web Editor NEWA React component for TypeIt, the most versatile JavaScript animated typing utility on the planet.
Home Page: https://typeitjs.com
A React component for TypeIt, the most versatile JavaScript animated typing utility on the planet.
Home Page: https://typeitjs.com
After looping 4 times some words don't appear, I initially thought it was some styling issue but Chrome doesn't show the letters, to give an example:
1 - Be much more than normal
2 - Be much more than normal
3 - Be much more than normal
4 - e much more than normal
5 - much more than normal
6 - much more than normal
7 - uch more than normal
My code below:
<TypeIt
element={"h1"}
getBeforeInit={instance => {
instance
.type("Be much")
.pause(450)
.delete("2")
.type("ch")
.break()
.pause(750)
.type("more")
.break()
.pause(750)
.type("than")
.break()
.pause(750)
.type("normal")
.pause(3000)
.empty()
return instance;
}}
options={{
waitUntilVisible: true,
loop: true,
lifeLike: true
}}
/>
Hi @alexmacarthur,
I'm trying to do a multilingual website with a cool animated title (with typeit-react!).
But when I change the state of the TypeIt component, it retypes the previous values as well and chains them!
Here is the minimal bug reproduction: https://codesandbox.io/s/peaceful-sunset-i2eve?file=/src/App.js
Or maybe there is a smarter way to build this.
Are the types declarations not exported properly?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.