Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style> 
#myDIV {
  border: 1px solid black;
  width: 300px;
  color: red;
  animation: mymove 5s infinite;
}
@keyframes mymove {
  50% {color: blue;}
}
</style>
</head>
<body>
<h1>Animation of color</h1>
<p>Gradually change the color of the text from red to blue, then back:<p>
<div id="myDIV">
  <h1>This is a header</h1>
  <p>This is a paragraph</p>
</div>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss_anim_color by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 05 Sep 2022 14:30:40 GMT -->
</html>