html3d扇形菜单,扇形菜单特效

扇形导航

*{

margin: 0;

padding: 0;

}

a {

text-align: right;

text-decoration: none;

color: #000 !important;

}

ul {

list-style: none;

}

.menu {

width: 100px;

height: 100px;

border-radius:0 0 100px 0;

background-color: #ddd;

position: relative;

left:100px;

top:100px;

}

.menu ul {

position: absolute;

width: 0;

height: 0;

left: 0;

top: 0;

}

.menu ul li {

width: 0;

height: 0;

}

ul.menu1 {

width: 100px;

height: 100px;

overflow: hidden;

z-index: 3;

}

.menu1>li>a{

display: block;

width: 100px;

height: 100px;

z-index: 3;

position: absolute;

border-radius:0 0 100px 0;

background-color: #666;

}

.menu1:hover {

width: 300px;

height: 300px;

}

.menu1:hover>li>a{

background-color: red;

}

.menu1:hover .menu2{

transform: rotate(0);

transition: all 1s;

}

.menu1>li .menu2>li:hover>a{

background-color: red;

}

.menu2{

transform: rotate(90deg);

}

.menu2>li>a{

position: absolute;

width: 200px;

height: 200px;

border-radius: 0 0 300px 0;

transform-origin:left top;

z-index: 2;

}

.menu2>li:nth-child(1)>a{

background-color: #ddd;

transform: rotate(0deg);

}

.menu2>li:nth-child(2)>a{

background-color: #ccc;

transform: rotate(15deg);

}

.menu2>li:nth-child(3)>a{

background-color: #bbb;

transform: rotate(30deg);

}

.menu2>li:nth-child(4)>a{

background-color: #aaa;

transform: rotate(45deg);

}

.menu2>li:nth-child(5)>a{

background-color: #999;

transform: rotate(60deg);

}

.menu2>li:nth-child(6)>a{

background-color: #888;

transform: rotate(75deg);

}

.menu2>li:hover .menu3{

transform: rotate(0deg);

transition: all 1s;

}

.menu1 .menu2 .menu3 li:hover a{

background-color: #f00;

}

.menu3 {

transform: rotate(90deg);

z-index: -100;

}

.menu3>li>a{

width: 300px;

height: 300px;

border-radius: 0 0 300px 0;

position: absolute;

transform-origin:left top;

}

.menu3>li:nth-child(1)>a{

transform: rotate(0deg);

background-color: #999;

}

.menu3>li:nth-child(2)>a{

transform: rotate(30deg);

background-color: #888;

}

.menu3>li:nth-child(3)>a{

transform: rotate(60deg);

background-color: #777;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值