Animate CSS outline

CSSWeb DevelopmentFront End Technology

To implement animation on outline property with CSS, you can try to run the following code:

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <style>
         div {
            width: 550px;
            height: 350px;
            outline: 1px solid blue;
            animation: myanim 3s infinite;
         }
         @keyframes myanim {
            50% {
               outline: 10px dashed orange;
            }
         }
      </style>
   </head>
   <body>
      <h1>CSS outline property</h1>
      <div> </div>
   </body>
</html>
raja
Published on 08-Jun-2018 07:17:10
Advertisements