Hi there! Welcome!
I'm going to start with two existing resources which do similar things along these lines so check them both out let me know if either of them do the thing you want.
An option that can make text appear word-by-word in a dialog box: the Dialogizer module (specifically this page's demo which shows the text showing up word-by-word)
An option that can make text appear letter-by-letter in a text field: the Typetext module. (Demo on the main page)
Are either of these similar to what you're looking for? I can write out instructions for how to use either of them.