更新时间:2023-10-24 21:56:10
您可以简单地使用 CSS过渡:
div.menuItem {
border-radius: 25px 45px 25px 45px;
transition: border-radius .9s;
/* all other properties... */
}
div.menuItem:hover {
border-radius: 25px;
}
这是小提琴: http://jsfiddle.net/ucVPg/
PS .请不要忘记供应商前缀.
P.S. Don't forget the vendor prefixes.