HTML CSS examples for CSS:Animation
Adding css animation to span in text
<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>