ANIMATIONS

 HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <link rel="stylesheet" href="Animations.css">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Animations</title>
</head>
<body>
    <div id="box">Animation Demo</div>
</body>
</html>

CSS

#box{
    height: 300px;
    width: 700px;
    background-color: aqua;
    /* animation-name:Demo;
    animation-duration: 2s;
    animation-timing-function: ease-in;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-direction: alternate; */


/* ANIMATION SHORT HAND */
    animation: widthEnlarging 2s ease-in 0s infinite normal;
}
/* @keyframes Demo {
    from {
        font-size: 20px;
    }
    to{
        font-size: 100px;
    } */
/* } */
@keyframes widthEnlarging {
    from{
        width: 70px;
    }
    to{
        width: 100px;
    }
}

Comments

Popular posts from this blog

Assignment

OverFlow

FRONT-END PROJECT SPOTIFY CLONE