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

Add duration #4

Closed harrisonhoward closed 2 years ago

harrisonhoward commented 2 years ago

Unsure if this is able to be done but the ability to change the duration of the animation would be great.

maxeth commented 2 years ago

Hey, I published a new version with types and a new speed prop that ranges from 0-100 (60 is the default "old" value) which determines how fast the animation is.

Is that what you meant with 'duration'?

You can install the new one and try it out, you just have change the import to import {TypeAnimation} from "react-type-animation", (no more default export) there are no other breaking changes.

harrisonhoward commented 2 years ago

This is what I was looking for