Hi. Thanks for answer. Creating a lot of textboxes is the very ugly way to do this. I can write js code. But, I don't know how to find element via JS. For example, I have textbox with name Text1. How can I get it via JS?
var player = GetPlayer(); var delay = 100; var temp = "test test test"; // our text var charArray = temp.split(''); charArray.forEach(function(item, index) { setTimeout(function() { var text = player.GetVar("text"); text = text + item; player.SetVar("text",text); }, delay*index); });
I created button trigger, pasted in the code, created a variable named "text" and default value left blank. And created a textbox. Then hit button. Nothing happens.
6 Replies
Hi, Asd asd - Welcome to the community! There are a few threads you may want to check out for some suggestions:
How to create typewriter effect
Typing Effect Animation
Hope that helps, and others in the community may have additional suggestions. :)
Hi. Thanks for answer. Creating a lot of textboxes is the very ugly way to do this. I can write js code. But, I don't know how to find element via JS. For example, I have textbox with name Text1. How can I get it via JS?
Thanks.
I have found a workaround. Tutorial:
1. Create textbox.
2. Create variable . For example, `text.
3. Create trigger and choose Execute JavaScript.
4. Paste the following code:
Thanks for popping back in to share asd :)
Fantastic, ASD - thanks so much! :)
For me it does not work. Anybody an Idea?
I created button trigger, pasted in the code, created a variable named "text" and default value left blank. And created a textbox. Then hit button. Nothing happens.
This post was removed by the author
This discussion is closed. You can start a new discussion or contact Articulate Support.