<html>
<head>
<style>
#myDIV {
width: 100px;
height: 100px;
background-color: coral;
color: green;
position: absolute;
animation: mymove 5s infinite; /* Safari 4.0 - 8.0 */
animation: mymove 5s infinite;
clip: rect(0,100px,100px,0);
}
/* Safari 4.0 - 8.0 */
@-webkit-keyframes mymove {
50% {clip: rect(0,50px,50px,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>
<p><b>Note:</b> CSS Animations do not work in Internet Explorer 9 and earlier versions.</p>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss_anim_clip by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 13:18:21 GMT -->
</html>