HTML code for animation

 <!DOCTYPE html>

<html>

    <head>

        <title>Page Title</title>

    </head>

    <body>

        <svg width="1000" height="1000">

            <rect width="50" height="50" fill="blue">

            <animate attributename="y" from="0" to="500" dur="2s" fill="freeze" repeatcount="indefinite"/>

            </rect>

        </svg>

    </body>

</html>


OUTPUT




Comments