首页 技术 正文
技术 2022年11月7日
0 收藏 791 点赞 1,089 浏览 2265 个字

之前为大家介绍了好几款导航菜单,今天要给大家带来一款纯css3实现的环形导航菜单。该导航比较新鲜,列表图标位于中间,单击列表图标的时候,各项分布于列表图表的四周。形成一个环形。效果图如下:

一款纯css3实现的环形导航菜单

在线预览   源码下载

实现的代码。

html代码:

 <div class="container">
<h1>
Cool Open/Close menu in full CSS</h1>
<input type="checkbox" id="menu_opener_id" class="menu_opener">
<label for="menu_opener_id" class="menu_opener_label">
</label>
<div class="barre_hamburger">
</div>
<a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="link_one link_general"></a><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="link_two link_general">
</a><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="link_three link_general"></a><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="link_four link_general">
</a></input>
</div>

css代码:

        body
{
background: #34495e;
} .container
{
width: 550px;
display: block;
margin: auto;
position: relative;
} h1
{
text-align: center;
font-family: 'Roboto' , sans-serif;
font-weight:;
color: #f1c40f;
} .menu_opener
{
display: none;
} .menu_opener:checked ~ .link_one
{
top: 65px;
}
.menu_opener:checked ~ .link_two
{
left: 385px;
}
.menu_opener:checked ~ .link_three
{
top: 385px;
}
.menu_opener:checked ~ .link_four
{
left: 65px;
}
.menu_opener:checked ~ .barre_hamburger
{
opacity:;
}
.menu_opener:checked ~ .menu_opener_label:after
{
transform: rotate(45deg);
top: 70px;
}
.menu_opener:checked ~ .menu_opener_label:before
{
transform: rotate(-45deg);
top: 70px;
} .menu_opener_label
{
background: #f1c40f;
width: 150px;
height: 150px;
display: block;
cursor: pointer;
border-radius: 50%;
position: absolute;
top: 200px;
left: 200px;
z-index:;
}
.menu_opener_label:after
{
position: absolute;
top: 50px;
left: 50px;
background: #000;
content: "";
width: 50px;
height: 10px;
-webkit-transition: all 0.4s ease;
transition: all 0.4s ease;
}
.menu_opener_label:before
{
position: absolute;
top: 90px;
left: 50px;
background: #000;
content: "";
width: 50px;
height: 10px;
-webkit-transition: all 0.4s ease;
transition: all 0.4s ease;
} .barre_hamburger
{
width: 50px;
height: 10px;
position: absolute;
top: 270px;
left: 250px;
background: #000;
z-index:;
-webkit-transition: all 0.4s ease;
transition: all 0.4s ease;
} .link_general
{
width: 100px;
height: 100px;
display: block;
border-radius: 50%;
position: absolute;
top: 225px;
left: 225px;
background: #ecf0f1;
-webkit-transition: all 0.4s ease;
transition: all 0.4s ease;
} .link_one
{
background: url("home.png") #f1c40f no-repeat center center;
} .link_two
{
background: url("mail.png") #f1c40f no-repeat center center;
} .link_three
{
background: url("set.png") #f1c40f no-repeat center center;
} .link_four
{
background: url("start.png") #f1c40f no-repeat center center;
}

注:本文爱编程原创文章,转载请注明原文地址:http://www.w2bc.com/Article/7957

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,085
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,560
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,409
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,182
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,819
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,902