Welcome to another post.
But let's not go too far, if you are still not very clear about what this effect is, do not worry, we will explain!
What is the machine effect?
The machine effect is an effect that can be done in various programming languages to interpret that the text is being written at that moment.
When you write content, the texts appear as you press the keys, right? Well that's the actual machine!
Now, copy this code and edit it according to what we will specify below on this page:
What is in bold, underlined and italicized, is what we can change to customize it:
- Change "effect" by the id of the div where we want the effect to be seen.
- We change "This is a test" for the message we want to print.
- Change “200” for the waiting time between each letter (in thousandths of a second [ex: 1000 = 1 second, 500 = 0.5 seconds, etc]).
And if we try it, we will see that it looks like a typewriter effect like "This is a test" has.
Improve the machine effect using CSS
Before finishing this post, I would like to tell you that in this blog you will find more useful content for programmers: scripts, help, tips, programs, etc ... Visit us!
In the same way, we write tech tutorials of all kinds: gaming, software, hardware, networks, programming, etc, etc ... Surely there will be something that interests you to see!
We do not see in another article.