UNPKG

typingfx

Version:

Customizable, smooth, and snappy typing animations for React — built for natural, human-like effects with minimal config.

2 lines (1 loc) 506 B
import{create as r}from"kosha";var p={speed:20,delSpeed:40,noCursor:!1,noCursorAfterAnimEnd:!1,repeat:1/0,force:!1,paused:!1},t=o=>({...p,setSpeed:e=>o({speed:e}),setDelSpeed:e=>o({delSpeed:e}),setNoCursor:e=>o({noCursor:e}),setNoCursorAfterAnimEnd:e=>o({noCursorAfterAnimEnd:e}),setRepeat:e=>o({repeat:e}),setForce:e=>o({force:e}),setPaused:e=>o({paused:e}),setComponentAnimation:e=>o({componentAnimation:e})}),a=r(t),n={},m=o=>{var e;return o?((e=n[o])!=null||(n[o]=r(t)),n[o]):a};export{p as a,m as b};