<html>
<head>
<style>
#myDIV {
margin: auto;
border: 1px solid black;
width: 200px;
height: 100px;
background-color: coral;
color: white;
animation: mymove 5s infinite;
}
@keyframes mymove {
50% {transform: rotate(180deg);}
}
</style>
</head>
<body>
<h1>Animation of transform</h1>
<p>Gradually rotate the DIV element 180 degrees, and back:<p>
<div id="myDIV">
<h1>myDIV</h1>
</div>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.php?filename=trycss_anim_transform by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 16:50:31 GMT -->
</html>