We are going to make something similar to these ones here.
First, we need to set the HTML then style it later with CSS
After setting the HTML we will now set the styling with CSS to make it more eye compelling
We will set a background colour and set the margin and padding to 0.
We will target the container and style it with the class .container
This will get the element id ‘text’ and we store it into the const text.
We now create a const prog that contains the text that will be written as the auto writing text.
we will use this later in our function to loop through the text
We will call the function “write” and implement it to run after 115 milliseconds.
You can check and download the source code on Github
If you found this article helpful please share.