Skip to main content

CSS Reveal Text Effect - Animation Idea #6

  • January 28, 2022
  • 0 replies
  • 719 views

gstager
Hero III
Forum|alt.badge.img+7

In this example - I thought it might be neat to create some sort of animated revelation of text.

CSS Reveal Text Effect
/* Text Reveal */

/* This CSS goes in the Branding and Look Section */
#mask {
  width: 500px;
  height: 50px;
  background-color: black;
  transform-origin: 100% 0%;
  animation-name: reveal;
  animation-duration: 4s;
  animation-iteration-count: infinite;
}

@keyframes reveal {
  100% {transform: translateX(500px);}
  100% {width: 5px;}
}

Here is what I did with the HTML

<!-- This is the HTML code for your widget -->

<div style="background-color:#000000; font-family: 'Courier New'; color:#00ff00; height:100px; padding:10px; font-size:24px;">

This is revealed text.

</div>

<div id="mask" style="position: absolute; left: 0px; top: 0px;">
</div>

Please share all the ideas you might have for an effect such as this one.

All you have to do is tweak the settings to make it fit your own projects or theme.

Did this post help you find an answer to your question?

0 replies

Be the first to reply!

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings