Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!Doctype html> <html> <style> #myContainer { width: 400px; height: 400px; position: relative; background: yellow; } #myAnimation { width: 50px; height: 50px; position: absolute; background: red; } </style> <body> <h1>My First JavaScript Animation</h1> <div id="myContainer"> <div id="myAnimation"></div> </div> </body> </html>