css实现三维魔盒旋转菜单效果代码
代码语言:html
所属分类:菜单导航
代码描述:css实现三维魔盒旋转菜单效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
<style>
body {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: #E7EAE3;
-moz-box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.4);
-webkit-box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.4);
box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.4);
}
*{padding:0;margin:0}
ul {
list-style: none;
margin: 0;
padding: 0;
}
p {
line-height: 22px;
position: absolute;
left: 0;
font-size: 12px;
right: 0;
color: rgba(255, 255, 255, 0.5);
font-style: italic;
cursor: default;
}
nav {
height: 240px;
width: 240px;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
perspective: 1000px;
-webkit-perspective: 1000px;
-moz-perspective: 1000px;
}
h2 {
color: #9EA7B3;
font-weight: normal;
font-style: italic;
text-align: center;
font-size: 18px;
margin-top: -40px;
visibility: hidden;
-moz-transition: all 0.4s ease;
-o-transition: all 0.4s ease;
-webkit-transition: all 0.4s ease;
transition: all 0.4s ease;
}
h3 {
color: rgba(255, 255, 255, 0.3) !important;
cursor: default;
font-weight: normal;
margin: 0;
line-height: 42px;
font-size: 14px;
}
.side {
color: white;
background-color: #2C2C2C;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
-moz-box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}
.side span {
font-size: 12px;
position: relative;
top: -36px;
color: rgba(255, 255, 255, 0.3);
opacity: 0;
-moz-transition: opacity 0.4s ease;
-o-transition: opacity 0.4s ease;
-webkit-transition: opacity 0.4s ease;
transition: opacity 0.4s ease;
}
.side li {
width: 50px;
height: 50px;
float: left;
margin-left: 22px;
margin-top: 20px;
text-align: center;
line-height: 60px;
-moz-transition: co.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0