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.

Answered type text animation

Beppe

New Coder
hi there. This might be a silly question maybe because I know nothing about coding nor CSS but I found a CSS code online for a typing effect text animation which looks like this:

.typeit{color:yellow; font-weight:bolder;font-family: monospace;
overflow: hidden;
font-size:50px; /* this can be any font size you want */

border-right: 3px solid #1f1f1e; /* change this color in the keyframe too */

white-space: nowrap;
margin: 0 auto;
animation:
typeit 3.5s steps(40, end),
right-border .5s step-end infinite;
}

@keyframes typeit {
from { width: 0 }
to { width: 100% }
}

@keyframes right-border {
from, to { border-color: transparent }
50% { border-color: #1f1f1e; /* change this in the CSS above too */ }
}

All I did is I copied and pasted the code on my website. It works. My question is.. at present the animation starts as soon as you land on such web page and I would like to be able to decide for it to start 2,3 or maybe 5 seconds after you open the website page.

Is there anyone on here that would be able to help?
Thanks in advance!
Beppe
 

Latest posts

Buy us a coffee!

Buy me a coffee.
Back
Top Bottom