Adding css animation to span in text - HTML CSS CSS

HTML CSS examples for CSS:Animation

Description

Adding css animation to span in text

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
body {<!--   ww w  . j  a va2  s  . c  o  m-->
   margin:0px;
   width:100%;
}

h1 span {
   display:inline-block;
}

.animated {
   animation-duration:3.6s;
   animation-fill-mode:both;
   animation-iteration-count:infinite;
}
</style> 
 </head> 
 <body> 
  <h1> Text that is not supposed to animate <span style="color:#4ceb90" class="animated pulse animatespan">pulsing word</span> Text that is not supposed to animate <span style="color:#4ceb90" class="animated pulse animatespan">pulsing word</span> Text that is not supposed to animate <span style="color:#4ceb90" class="animated pulse animatespan">pulsing word.</span> </h1>  
 </body>
</html>

Related Tutorials