Sharavnan Kv Sharavnan Kv - 2 months ago 45
CSS Question

linear wipe text effect using CSS or CSS3 animate

How to show text reveal with " linear wipe " effect using CSS and JavaScript. How to do that?

<p>Text linear wipe </p>

Answer

Check this snippet:

p{
  white-space: nowrap;
  overflow: hidden;
  width: 30em;
  animation: linearwipe 6s steps(60, end); 
}

@keyframes linearwipe{ 
  from { width: 0; } 
}  
<p>Text linear wipe </p>

Comments