Perform Animation on border-right-color property

To implement animation on the border-right-color property with CSS, you can try to run the following code


Live Demo

<!DOCTYPE html>
         div {
            width: 500px;
            height: 300px;
            background: yellow;
            border: 15px solid yellow;
            background-image: url('');
            animation: myanim 3s infinite;
            background-position: bottom left;
            background-size: 50px;
         @keyframes myanim {
            30% {
               background-color: maroon;
               border-right-color: red;
      <h2>Performing Animation for border right color</h2>
Lakshmi Srinivas
Lakshmi Srinivas

Programmer / Analyst / Technician