Typewriter Effect

Code Block

<div class="typewriter">
  <h1><b>your</b> opinion matters</h1>
</div>

Custom CSS

/* Typwriter Effect */
.typewriter h1 {
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  border-right: 3px solid #D17B0F; /* The typwriter cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  height: 12vh;
  animation: 
  typing 3.5s steps(40, end),
  blink-caret .75s step-end infinite;
}

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

/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #D17B0F; }
}
Previous
Previous

Vertical Accordion Tabs

Next
Next

Carousel Summary Marquee