Animated css3 border

by sundaramkumar

HTML

<p>Gradually change the border-top-right-radius property from 0 to 50px then back:<p>
<div id="myDIV"></div>

<p>The border-top-right-radius is <em>animatable</em> in CSS.</p>
<p><b>Note:</b> CSS Animations do not work in Internet Explorer 9 and earlier versions.</p>

CSS

#myDIV {
    width: 300px;
    height: 200px;
    border: 1px solid #FF7E44;
    background-color:#FF7E44;
    border-top-right-radius: 70px;
    -webkit-animation: mymove 5s infinite; /* Chrome, Safari, Opera */
    animation: mymove 5s infinite;
    
    
}

/* Chrome, Safari, Opera */
@-webkit-keyframes mymove {
    50% {border-top-right-radius: 50px;}
}

/* Standard syntax */
@keyframes mymove {
    50% {border-top-right-radius: 50px;}
}