maxeth / react-type-animation

A React typewriter animation based on typical with extended functionality and customization.
https://react-type-animation.netlify.app/
MIT License
391 stars 24 forks source link

Animation is very slow until i change tabs #55

Open FaryarKankash opened 7 months ago

FaryarKankash commented 7 months ago

<TypeAnimation sequence={[ > question: ${item.question}, ]} wrapper="p" speed={{ type: "keyStrokeDelayInMs", value: 0.001 }} className='font-secondary' />

maxeth commented 7 months ago

I just tested it and in my case it's very fast, not slow, just as it should with a delay of 0.001ms between keystrokes. Not sure why it's slow on your end. Maybe this is related? https://github.com/maxeth/react-type-animation/issues/53

FaryarKankash commented 7 months ago

I just tested it and in my case it's very fast, not slow, just as it should with a delay of 0.001ms between keystrokes. Not sure why it's slow on your end. Maybe this is related? #53

do you test it in next js? i have this problem in next js app router client side

malmahdawi commented 3 months ago

@FaryarKankash yes i faced this while using nextjs and passing number. use this speed prop instead speed={{type: "keyStrokeDelayInMs", value: 20}}