How to delay Javascript play until after interaction trigger

Hi,

Is it possible to delay a bit of JavaScript from starting to run until after an element has been triggered?

Here is the published site with Javascript running: https://test-project-bb9b34.webflow.io

I want the text in the background to start typing only after the ‘congratulations’ modal has been closed (by pressing continue).

Can anyone help?

Here is my Read Only link:
https://preview.webflow.com/preview/test-project-bb9b34?utm_medium=preview_link&utm_source=designer&utm_content=test-project-bb9b34&preview=1e794c05f7659d9b751ce86d5015a26c&mode=preview

I’ve got the same question. I want to delay a bit of javascript code.