css实现炫酷鼠标交互倾斜的菜单效果代码
代码语言:html
所属分类:菜单导航
代码描述:css实现炫酷鼠标交互倾斜的菜单效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
html {
width: 100%;
height: 100%;
}
body {
width: 100%;
height: 100%;
background: #434A54;
font-family: 'PT Sans Narrow', sans-serif;
font-size: 16px;
color: #ffffe2;
-webkit-font-smoothing: antialiased;
}
#nav {
-webkit-perspective: 1000px;
}
#menu {
height: 80px;
position: relative;
margin: 50px auto;
width: 900px;
background-color: rgb(0, 0, 0);
-webkit-transform-style: preserve-3d;
}
#menu-no-preserve {
height: 80px;
position: relative;
margin: 50px auto;
width: 900px;
}
#menu .face {
background-color: rgb(0, 0, 0);
height: 80px;
position: absolute;
width: 900px;
}
#menu .one {
background: rgb(0, 0, 0);
background: blue;
-webkit-transform: rotateX(90deg) translateZ(40px);
}
#menu .two {
background-color: rgb(235, 41, 158);
-webkit-transform: translateZ(40px);
background: #000000; /* Old browsers */
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#000000), color-stop(100%,#141414.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0