CSS animation-name property

CSSWeb DevelopmentFront End Technology

Use the animation-name property to set the name of the @keyframes animation.

You can try to run the following code to implement the animation-name property:

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <style>
         div {
            width: 150px;
            height: 200px;
            background-color: yellow;
            animation-name: myanim;
            animation-duration: 3s;
            animation-delay: 3s;
         }
         @keyframes myanim {
            from {
               background-color: green;
            }
            to {
               background-color: blue;
            }
         }
      </style>
   </head>
   <body>
      <div></div>
   </body>
</html>
raja
Published on 16-May-2018 17:28:50
Advertisements