Site Search:

How to create type writer style text in 5 minutes

Back>

copy the following code into your blogger post's HTML.
example

<style>
body{
  background: #000;
  padding-top: 10px;
}

p{
  color: lime;
  font-family: "Courier";
  font-size: 20px;
  margin: 10px 0 0 10px;
  white-space: nowrap;
  overflow: hidden;
  width: 30em;
  animation: type 4s steps(60, end);
}


p:nth-child(2){
  animation: type2 8s steps(60, end);
}

p:nth-child(3){
  animation: type2 16s steps(60, end);
}

p:nth-child(4){
  animation: type3 20s steps(60, end);
}

p a{
  color: lime;
  text-decoration: none;
}

#cursor{
  animation: blink 1s infinite;
}

@keyframes type{
  from { width: 0; }
}

@keyframes type2{
  0%{width: 0;}
  50%{width: 0;}
  100%{ width: 100; }
}

@keyframes type3{
  0%{width: 0;}
  75%{width: 0;}
  100%{ width: 100; }
}

@keyframes type4{
  0%{width: 0;}
  25%{width: 0;}
  100%{ width: 100; }
}

@keyframes blink{
  to{opacity: .0;}
}

::selection{
  background: black;
}

/*dialog box*/
.triangle-isosceles {
  position: relative;
  padding: 15px;
  margin: 1em 0 3em;
  color: #000;
  background: #f3961c;
  border-radius: 10px;
  background: linear-gradient(top, #f9d835, #f3961c);
}

/* creates triangle */
.triangle-isosceles:after {
  content: "";
  display: block; /* reduce the damage in FF3.0 */
  position: absolute;
  bottom: -15px;
  left: 50px;
  width: 0;
  border-width: 15px 15px 0;
  border-style: solid;
  border-color: #f3961c transparent;
}
</style>


<br />
<div class="triangle-isosceles">
<p>The first paragraph.</p>
<p>The second paragraph.</p>
<p>The third paragraph.</p>
<p>welcome to <a href="xyzcode.blogspot.com">xyzcode.blogspot.com</a> <span id="cursor">|</span></p>
</div>