<html>
<head>
<style>
#myDIV {
width: 100px;
height: 100px;
background-color: coral;
color: green;
position: absolute;
animation: mymove 5s infinite;
clip: rect(0,100px,100px,0);
}
@keyframes mymove {
50% {clip: rect(0,50px,50px,0);}
}
</style>
</head>
<body>
<h1>Animation of clip</h1>
<div id="myDIV">
<h1>myDIV</h1>
</div>
</body>
</html>