html - Typing effect with CSS3 cuts some text at the end -


i want ask. have problem when i'm using typing effect css3. effect in end cuts text, want text displayed in new line instead of cutting text in end.

.left-side {      float: left;      margin-top: 160px;      color: #4a4a4a;      font-size: 60px;      font-family: avenir;  }    .left-side strong {      font-family: "arial rounded mt bold";      color: #ff7916;  }    @media screen , (max-width: 1025px) {      .left-side {          width: 100%;      }  }    @media screen , (max-width: 1200px) {      .left-side {          text-align: center;      }  }    @media screen , (max-width: 670px) {      .left-side {          margin-top: 50px;          font-size: 48px;      }  }    @media screen , (max-width: 600px) {      .left-side {          margin-top: 50px;          font-size: 38px;      }  }    @media screen , (max-width: 500px) {      .left-side {          margin-top: 50px;          font-size: 38px;      }  }    .left-side p:nth-child(1) {      white-space: nowrap;      overflow: hidden;      width: 100%;      -webkit-animation: typing 3s steps(100, end);      -moz-animation: typing 3s steps(100, end);  }    .left-side p:nth-child(2){      white-space: nowrap;      overflow: hidden;      width: 100%;      -webkit-animation: typing 4s steps(100, end);      -webkit-animation-delay:3s;      -webkit-animation-fill-mode:both;      -moz-animation: typing 4s steps(100, end);      -moz-animation-delay:3s;      -moz-animation-fill-mode:both;  }    .left-side p:nth-child(3){      white-space: nowrap;      overflow: hidden;      width: 100%;      -webkit-animation: typing 4s steps(100, end);      -webkit-animation-delay:7.5s;      -webkit-animation-fill-mode:both;      -moz-animation: typing 4s steps(100, end);      -moz-animation-delay:7.5s;      -moz-animation-fill-mode:both;  }    @-webkit-keyframes typing {      { width: 0%; }      { width: 100%; }  }    @-moz-keyframes typing {      { width: 0%; }      { width: 100%; }  }
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>  <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>              <div class="left-side">                  <div class="col-md-12">                      <p>first paragraph</p>                      <p>second paragraph more longer , it's long...</p>                      <p><strong>and last paragraph</strong></p>                  </div>              </div>

thanks in advance!

in css, not allowing browser wrap text within width of paragraph. please remove property css p tag

white-space: nowrap; 

this solve problem.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -