<body> | |
<style> | |
div { | |
width: 100px; | |
height: 100px; | |
margin-bottom: 2rem; | |
border: 10px solid green; | |
background-color: green; | |
} | |
</style> | |
<script> | |
document.body.appendChild(document.createElement("div")).animate({ transform: "scale(0)" }, 1000 * 60 * 60 * 24); | |
</script> | |
</body> |