<section class="rotatingText">
  <div class="rotatingText-content">
    <p class="rotatingText-description">
      I'll make your website&hellip;
    </p>

    <h2 class="rotatingText-adjective">beautiful</h2>
    <h2 class="rotatingText-adjective">maintainable</h2>
    <h2 class="rotatingText-adjective">perfect 👌</h2>
  </div>
</section>

<!-- Shameless plug 😉 -->
<a class="twitter" href="https://twitter.com/KeenanPayne_" title="Follow me on Twitter" target="_blank">
    <img src="https://assets.codepen.io/174608/twitter.svg" />
</a>
.rotatingText { 
  align-items: center;
  display: flex;
  height: 100vh;
  text-align: center;
}

.rotatingText-content { 
  position: relative;
  width: 100%;
}

.rotatingText-description { 
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 14px;
  margin: 0;
  
  @media (min-width: 768px) { 
    font-size: 18px;
  }
}

.rotatingText-adjective { 
  font-family: 'Open Sans', sans-serif;
  font-size: 40px;
  left: 0;
  margin-bottom: 0;
  margin-top: 30px;
  opacity: 0;
  position: absolute;
  right: 0;
  text-align: center;
  text-transform: uppercase;
  top: 0;
  
  @media (min-width: 768px) { 
    font-size: 70px;
  }
  
  &:nth-of-type(1) { 
    animation: rotate-text-up 1.5s .75s; 
  }
  
  &:nth-of-type(2) { 
    animation: rotate-text-up 1.5s 2s; 
  }  
  
  &:nth-of-type(3) { 
    animation: fade-text-in 1.5s 3.25s forwards;
  }
}

// Animations
@keyframes rotate-text-up { 
  0% {
    transform: translate3d(0, 80px, 0);
    opacity: 0;
  }
  
  20%, 80% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  
  100% {
    transform: translate3d(0, -40px, 0);
    opacity: 0;
  }
}

@keyframes fade-text-in { 
  0% {
    opacity: 0;
    transform: translate3d(0, 80px, 0);
  }
  
  50%, 100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}


//
// Demo Styles
// -----------

.twitter { 
  bottom: 0;
  position: fixed;
  right: 0;
  width: 50px;
}
View Compiled

External CSS

  1. https://fonts.googleapis.com/css?family=Open+Sans:700

External JavaScript

This Pen doesn't use any external JavaScript resources.