I am trying this typewriter text effect but my words are cutting off and not continuing on the next line below is the css and images of what l am getting: html{ min-height: 100%; overflow: hidden; } body{ height: calc(100vh - 8em); padding: 4em; color: rgba(255,255,255,.75); font-family: 'Anonymous Pro', monospace; background-color: rgb(25,25,25); /*font-size:28.8px;*/ } .line-1{ position: relative; top: 50%; width: 20.18em; border-right: 2px solid rgba(255,255,255,.75); font-size: 180%; white-space: nowrap; overflow: hidden; -webkit-transform: translateY(-50%); transform: translateY(-50%); -webkit-box-sizing:content-box; box-sizing:content-box; } .anim-typewriter{ width:0; animation: typewriter 4s steps(44) 1s 1 normal both,blinkTextCursor 500ms steps(44) infinite normal; } @keyframes typewriter{ from{width: 0;} to{width: 24em;} } @keyframes blinkTextCursor{ from{border-right-color: rgba(255,255,255,.75);} to{border-right-color: transparent;} }
I am trying this typewriter text effect but my words are cutting off and not continuing on the next line below is the css and images of what l am getting: html{ min-height: 100%; overflow: hidden; } body{ height: calc(100vh - 8em); padding: 4em; color: rgba(255,255,255,.75); font-family: 'Anonymous Pro', monospace; background-color: rgb(25,25,25); /*font-size:28.8px;*/ } .line-1{ position: relative; top: 50%; width: 20.18em; border-right: 2px solid rgba(255,255,255,.75); font-size: 180%; white-space: nowrap; overflow: hidden; -webkit-transform: translateY(-50%); transform: translateY(-50%); -webkit-box-sizing:content-box; box-sizing:content-box; } .anim-typewriter{ width:0; animation: typewriter 4s steps(44) 1s 1 normal both,blinkTextCursor 500ms steps(44) infinite normal; } @keyframes typewriter{ from{width: 0;} to{width: 24em;} } @keyframes blinkTextCursor{ from{border-right-color: rgba(255,255,255,.75);} to{border-right-color: transparent;} }
Related questions
Question
I am trying this typewriter text effect but my words are cutting off and not continuing on the next line below is the css and images of what l am getting:
html{
min-height: 100%;
overflow: hidden;
}
body{
height: calc(100vh - 8em);
padding: 4em;
color: rgba(255,255,255,.75);
font-family: 'Anonymous Pro', monospace;
background-color: rgb(25,25,25);
/*font-size:28.8px;*/
}
.line-1{
position: relative;
top: 50%;
width: 20.18em;
border-right: 2px solid rgba(255,255,255,.75);
font-size: 180%;
white-space: nowrap;
overflow: hidden;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
-webkit-box-sizing:content-box;
box-sizing:content-box;
}
.anim-typewriter{
width:0;
animation: typewriter 4s steps(44) 1s 1 normal both,blinkTextCursor 500ms steps(44) infinite normal;
}
@keyframes typewriter{
from{width: 0;}
to{width: 24em;}
}
@keyframes blinkTextCursor{
from{border-right-color: rgba(255,255,255,.75);}
to{border-right-color: transparent;}
}
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 2 images