且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用jQuery对悬停中的特定角进行动画处理

更新时间: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.