乐于分享
好东西不私藏

纯CSS3图标菜单倾斜3d立体!!附源码!!

纯CSS3图标菜单倾斜3d立体!!附源码!!

  效果展示

  完整源码  

HTML
<!DOCTYPE html><html><head>  <metacharset="UTF-8">  <title>CSS3图标菜单倾斜3d立体</title>    <linkrel="stylesheet"href="css/style.css"media="screen"type="text/css" /></head><body>    <!--下面是无用代码-->    <astyle="display:none"href="http://www.bootstrapmb.com">bootstrap模板库</a>    <!--上面是无用代码--><divstyle="text-align:center;clear:both;position:absolute;top:0;left:260px"><scriptsrc="/gg_bd_ad_720x90.js"type="text/javascript"></script><scriptsrc="/follow.js"type="text/javascript"></script></div><ul>  <li>    <aclass='list-item'href=''>      <iclass='icon-reorder'></i>    </a>  </li>  <li>    <aclass='list-item'href=''>      <iclass='icon-th-large'></i>    </a>  </li>  <li>    <aclass='list-item'href=''>      <iclass='icon-bar-chart'></i>    </a>  </li>  <li>    <aclass='list-item'href=''>      <iclass='icon-tasks'></i>    </a>  </li>  <li>    <aclass='list-item'href=''>      <iclass='icon-bell'></i>    </a>  </li>  <li>    <aclass='list-item'href=''>      <iclass='icon-archive'></i>    </a>  </li>  <li>    <aclass='list-item'href=''>      <iclass='icon-comment'></i>    </a>  </li>  <li>    <aclass='list-item'href=''>      <iclass='icon-sitemap'></i>    </a>  </li>  <li>    <aclass='list-item'href=''>      <iclass='icon-thumbs-up'></i>    </a>  </li>  <li>    <aclass='list-item'href=''>      <iclass='icon-tumblr'></i>    </a>  </li></ul></body></html>
style.CSS
@import url(http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css);* {  -webkit-box-sizing: border-box;  -moz-box-sizing: border-box;  box-sizing: border-box;  list-style:none;}html {  width100%;  height100%;}body {  width100%;  height100%;  display: -webkit-box;  display: -moz-box;  display: -ms-box;  display: box;  -webkit-box-align: center;  -moz-box-align: center;  -ms-box-align: center;  box-align: center;  -webkit-box-pack: center;  -moz-box-pack: center;  -ms-box-pack: center;  box-pack: center;  -webkit-transformtranslate3d(000);}.clearfix {  zoom1;}.clearfix:before.clearfix:after {  content"\0020";  display: block;  height0;  overflow: hidden;}.clearfix:after {  clear: both;}body {  background#f2f2f2;}ul {  position: relative;  -webkit-transformrotate(-35degskew(20deg5deg);  -moz-transformrotate(-35degskew(20deg5deg);  -ms-transformrotate(-35degskew(20deg5deg);  -o-transformrotate(-35degskew(20deg5deg);  transformrotate(-35degskew(20deg5deg);}.list-item {  background#000000;  color#575757;  text-align: center;  height2.5em;  width4em;  vertical-align: middle;  line-height2.5em;  border-bottom1px solid #060606;  position: relative;  display: block;  text-decoration: none;  -webkit-box-shadow: -2em 1.5em 0 #e1e1e1;  -moz-box-shadow: -2em 1.5em 0 #e1e1e1;  box-shadow: -2em 1.5em 0 #e1e1e1;  -webkit-transition: top 0.25s linear, left 0.25s linear, background 0.1s linear, color 0.1s linear;  -moz-transition: top 0.25s linear, left 0.25s linear, background 0.1s linear, color 0.1s linear;  -o-transition: top 0.25s linear, left 0.25s linear, background 0.1s linear, color 0.1s linear;  transition: top 0.25s linear, left 0.25s linear, background 0.1s linear, color 0.1s linear;}.list-item:hover {  background#ff6e42;  color#fffcfb;  top: -0.5em;  left0.5em;  -webkit-transition: top 0.25s linear, left 0.25s linear, background 0.1s linear, color 0.1s linear;  -moz-transition: top 0.25s linear, left 0.25s linear, background 0.1s linear, color 0.1s linear;  -o-transition: top 0.25s linear, left 0.25s linear, background 0.1s linear, color 0.1s linear;  transition: top 0.25s linear, left 0.25s linear, background 0.1s linear, color 0.1s linear;  -webkit-box-shadow: -2em 2em 0 #e1e1e1;  -moz-box-shadow: -2em 2em 0 #e1e1e1;  box-shadow: -2em 2em 0 #e1e1e1;}.list-item:hover:before.list-item:hover:after {  -webkit-transition: all 0.25s linear;  -moz-transition: all 0.25s linear;  -o-transition: all 0.25s linear;  transition: all 0.25s linear;}.list-item:hover:before {  background#b65234;  width1em;  top0.5em;  left: -1em;}.list-item:hover:after {  background#b65234;  width1em;  bottom: -2.5em;  left1em;  height4em;}.list-item:before.list-item:after {  -webkit-transition: all 0.25s linear;  -moz-transition: all 0.25s linear;  -o-transition: all 0.25s linear;  transition: all 0.25s linear;}.list-item:after {  content"";  position: absolute;  height4em;  background#181818;  width0.5em;  bottom: -2.25em;  left1.5em;  -webkit-transformrotate(90degskew(0deg45deg);  -moz-transformrotate(90degskew(0deg45deg);  -ms-transformrotate(90degskew(0deg45deg);  -o-transformrotate(90degskew(0deg45deg);  transformrotate(90degskew(0deg45deg);}.list-item:before {  content"";  position: absolute;  height2.5em;  background#121212;  width0.5em;  top0.215em;  left: -0.45em;  -webkit-transformskewY(-45deg);  -moz-transformskewY(-45deg);  -ms-transformskewY(-45deg);  -o-transformskewY(-45deg);  transformskewY(-45deg);}