CSS animation-delay property

CSSWeb DevelopmentFront End Technology

Use the animation-delay property to set a delay for the start of an animation with CSS.

You can try to run the following code to implement the animation-delay property −


Live Demo

<!DOCTYPE html>
         div {
            width: 150px;
            height: 200px;
            background-color: yellow;
            animation-name: myanim;
            animation-duration: 2s;
            animation-delay: 2s;
         @keyframes myanim {
            from {
               background-color: green;
            to {
               background-color: blue;
Published on 16-May-2018 07:53:11