Animation of transform
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="STYLESHEET" type="text/css" href="web.css">
<title>web design</title>
</head>
<body>
<h1>Animation of transform</h1>
<p>Gradually rotete the DIV element 180 degrees and back</p>
<div id="mydiv">
<h1>MY DIV</h1>
</div>
</body>
</html>
CSS Animation of transform Style
#mydiv{
margin: auto;
border: 1px solid black;
width:200px;
height:100px;
background-color: coral;
color: #fff;
animation: mymove 5s infinite;
}
@keyframes mymove{
50%{
transform: rotate(180deg);
}
}