Open magento2dev opened 2 years ago
I am not able to start typewriter only when user clicks on a button, I tried doing like this :
const handleClick = (event:any) => { let typewriter: any; typewriter = new Typewriter(app, { loop: false, delay: 75, }); typewriter .typeString('A simple yet powerful native javascript') .pauseFor(300) .start(); };
const handleClick = (event:any) => { let typewriter: any; typewriter = new Typewriter(app, { loop: false, delay: 75, });
typewriter .typeString('A simple yet powerful native javascript') .pauseFor(300) .start(); };
I am not able to start typewriter only when user clicks on a button, I tried doing like this :
const handleClick = (event:any) => { let typewriter: any; typewriter = new Typewriter(app, { loop: false, delay: 75, });
typewriter .typeString('A simple yet powerful native javascript') .pauseFor(300) .start(); };