Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    GIF shows where to locate </> in the thread and or post editor toolbar.
    To learn more about how to use our BBCode feature, review our "How to post your code into threads" here.

    Thank you, Code Forum.

Realistic Typewriter - Multiple Lines with Intermittent Pauses

Almal

New Coder
Using only HTML and CSS, show a typewriter effect on multiple lines with intermittent pause at specified locations to make the typing look realistic:


The output result I'm looking for is the following:
Line One:
"INSERT TEXT"
-pause typewriter effect for two seconds-
continue on Line One: "INSERT TEXT 2"


Line Two - two seconds after Line One has finished typing:
"INSERT TEXT 3"

Line Three - two seconds after Line Two has finished typing:
"INSERT TEXT 4"



When amount of pause seconds and specified location of pauses are adjusted, it will make the typewriter effect look as if someone is thinking of what to write next.



The following two codes have given some results close to what I'm looking for, if only I could make the correct changes to achieve the full desired effect:

https://codepen.io/weihungchin/pen/XPZJwq (Intermittent pausing but no line breaks - also placement of elements is not as shown)

https://codepen.io/Bojoer/pen/EZYgeO (Multiple lines but no intermittent pausing at specified locations)



I am completely clueless when it comes to coding and wondered if anyone can provide what I think would make the most complete realistic typewriter effect. Thank you very much.
 

Latest posts

Buy us a coffee!

Buy me a coffee.
Back
Top Bottom