css3实现3d显示效果
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1.0, width=device-width"/><!-- , maximum-scale=1.0, user-scalable=no, " /> -->
<style type="text/css">
div {
box-sizing: border-box
}
a {
color: #000;
-webkit-transition: all .2s linear;
-moz-transition: all .2s linear;
-ms-transition: all .2s linear;
-o-transition: all .2s linear;
transition: all .2s linear
}
.nav {
height: 100%;
position: fixed;
left: 0;
top: 0;
z-index: 1000;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
-ms-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-perspective: 1000px;
-moz-perspective: 1000px;
-ms-perspective: 1000px;
perspective: 1000px
}
.navIcon {
position: absolute;
left: 0;
top: 0;
z-index: 990;
height: 100%;
background: #252525
}
.navIcon li {
border-bottom: 1px solid rgba(0,0,0,.3)
}
.navIcon a {
display: block;
width: 64px;
height: 64px;
line-height: 64px;
text-align: center;
font-size: 1.6em;
color: #999;
text-shadow: 0 1px 0 #000;
-webkit-transition: all .2s ease-out;
-moz-transition: all .2s ease-out;
-ms-transition: all .2s ease-out;
-o-transition: all .2s ease-out;
transition: all .2s ease-out
}
.navIcon a:hover {
color: #fff;
-webkit-transform: translateX(10px) scale(1.2);
-moz-transform: translateX(10px) scale(1.2);
-ms-transform: translateX(10px) scale(1.2);
-o-transform: translateX(10px) scale(1.2);
transform: translateX(10px) scale(1.2)
}
.nav:hover .navText {
-webkit-transform: rotateY(0deg);
-moz-transform: rotateY(0deg);
-ms-transform: rotateY(0deg);
-o-transform: rotateY(0deg);
transform: rotateY(0deg)
}
.navText {
position: absolute;
left: 63px;
top: 0;
z-index: 980;
height: 100%;
background: #252525;
border-right: 1px solid rgba(0,0,0,.3);
-webkit-transition: -webkit-transform .24s linear;
-moz-transition: -moz-transform .24s linear;
-ms-transition: -ms-transform .24s linear;
-o-transition: -o-transform .24s linear;
transition: transform .24s linear;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-transform-origin: 0 50%;
-moz-transform-origin: 0 50%;
-ms-transform-origin: 0 50%;
-o-transform-origin: 0 50%;
transform-origin: 0 50%;
-webkit-transform: rotateY(90deg);
-moz-transform: rotateY(90deg);
-ms-transform: rotateY(90deg);
-o-transform: rotateY(90deg);
transform: rotateY(90deg)
}
.navText li {
border-bottom: 1px solid rgba(0,0,0,.3)
}
.navText a {
display: block;
width: 200px;
height: 64px;
line-height: 64px;
text-indent: 1em;
font-size: 1.4em;
color: #999;
text-shadow: 0 1px 0 #000;
-webkit-transition: all .2s ease-out;
-moz-transition: all .2s ease-out;
-ms-transition: all .2s ease-out;
-o-transition: all .2s ease-out;
transition: all .2s ease-out
}
.navText a:hover {
color: #fff;
-webkit-transform: translateX(-14px);
-moz-transform: translateX(-14px);
-ms-transform: translateX(-14px);
-o-transform: translateX(-14px);
transform: translateX(-14px)
}
.nav:hover .navInfo {
left: 0;
opacity: 1;
-webkit-transition: opacity .5s ease-in .1s;
-moz-transition: opacity .5s ease-in .1s;
-ms-transition: opacity .5s ease-in .1s;
-o-transition: opacity .5s ease-in .1s;
transition: opacity .5s ease-in .1s
}
.navInfo {
position: absolute;
left: -400px;
bottom: 30px;
z-index: 999;
width: 264px;
color: #fff;
text-align: center;
line-height: 1.6;
opacity: 0
}
.navBlogLogo p {
width: 100px;
height: 100px;
margin: 0 auto;
border-radius: 50%;
border: 8px solid #fff;
background: #252525;
opacity: .6;
overflow: hidden;
text-align: center;
-webkit-transition: all .2s linear;
-moz-transition: all .2s linear;
-ms-transition: all .2s linear;
-o-transition: all .2s linear;
transition: all .2s linear;
-webkit-box-shadow: inset 0 0 0 5px #fff;
-moz-box-shadow: inset 0 0 0 5px #fff;
box-shadow: inset 0 0 0 5px #fff
}
.navBlogLogo img {
width: 100px;
height: 100px;
border-radius: 50%;
-webkit-transition: all .2s linear;
-moz-transition: all .2s linear;
-ms-transition: all .2s linear;
-o-transition: all .2s linear;
transition: all .2s linear
}
.navBlogLogo p:hover {
opacity: 1;
-webkit-box-shadow: 0 0 10px 1px #fff,inset 0 0 16px 4px #fff;
-moz-box-shadow: 0 0 10px 1px #fff,inset 0 0 16px 4px #fff;
box-shadow: 0 0 10px 1px #fff,inset 0 0 16px 4px #fff
}
.navBlogLogo p:hover img {
-webkit-transform: scale(0.88);
-moz-transform: scale(0.88);
-ms-transform: scale(0.88);
-o-transform: scale(0.88);
transform: scale(0.88)
}
.navBlogName {
font-size: 2em;
font-weight: bold;
letter-spacing: 2px;
color: #434343;
text-shadow: -1px -1px #4f4f4f,1px 1px #111
}
.navBlogDescription {
color: #444;
text-shadow: 1px 1px #111
}
.navFollow a {
font-size: 2em;
color: #323232;
letter-spacing: .5em;
text-shadow: 1px 1px #444,-1px -1px #111
}
.navFollow a:hover {
color: #545454;
text-shadow: -1px -1px #565656,1px 1px #111
}
</style>
</head>
<body>
<div id="nav" class="nav">
<div class="navIcon">
<ul>
<li><a title="Coding Serf" href="http://www.codingserf.com/"><i class="fa fa-home ">菜单1</i></a></li>
<li><a href="http://www.codingserf.com/index.php/category/1/"><i class="fa fa-bug ">菜单2</i></a></li>
<li><a href="http://www.codingserf.com/index.php/category/2/"><i class="fa fa-edit ">菜单3</i></a></li>
<li><a href="http://www.codingserf.com/index.php/category/3/"><i class="fa fa-gift ">菜单4</i></a></li>
<!-- <li><a href="#"><i class="fa fa-user-md "></i></a></li> -->
</ul>
</div>
<div class="navText">
<ul>
<li><a title="Coding Serf" href="http://www.codingserf.com/">Coding Serf</a></li>
<li class="cat-item cat-item-1"><a href="http://www.codingserf.com/index.php/category/1/" title="查看Web下的所有文章">Web</a>
</li>
<li class="cat-item cat-item-8"><a href="http://www.codingserf.com/index.php/category/2/" title="查看Translations下的所有文章">Translations</a>
</li>
<li class="cat-item cat-item-15"><a href="http://www.codingserf.com/index.php/category/3/" title="查看Life下的所有文章">Life</a>
</li>
</ul>
</div>
<div class="navInfo">
<div class="navBlogLogo"><p><img src="http://www.codingserf.com/wp-content/themes/codingserf/images/logo.jpeg" alt="logo"></p></div>
<div class="navBlogName">Coding Serf</div>
<div class="navBlogDescription">Stay @ Front End | "呆"在前端</div>
<div class="navFollow">
<a target="_blank" href="http://weibo.com/lybluesky"><i class="fa fa-weibo"></i></a>
<a target="_blank" href="https://twitter.com/lybluesky"><i class="fa fa-twitter"></i></a>
</div>
</div>
</div>
</body>
</html>
css3实现3d显示效果的更多相关文章
- 网页特效:用CSS3制作3D图片立方体旋转特效
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title&g ...
- css3的3D和2D
css3的3D旋转:rorateX():参数为正值时,盒子是围绕x轴,完成从Y轴正方向到Y轴负方向的旋转,视觉上呈现高度上的变化.rorateY():参数为正值时,盒子是围绕Y轴,完成从X轴正方向到X ...
- 使用 CSS3 实现 3D 图片滑块效果【附源码下载】
使用 CSS3 的3D变换特性,我们可以通过让元素在三维空间中变换来实现一些新奇的效果. 这篇文章分享的这款 jQuery 立体图片滑块插件,利用了 3D transforms(变换)属性来实现多种不 ...
- CSS3之3D变换实例详解
CSS3的3D效果很赞,本文实现简单的两种3D翻转效果.首先看效果和源代码,文末是文绉绉的总结部分^_^ 以下CSS代码为了简洁没有添加前缀,请视情况自行添加(自动化时代推荐使用其他的一些方法,如gu ...
- CSS3 transforms 3D翻开
R T L B <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://w ...
- 使用CSS3实现3D图片滑块效果
使用 CSS3 的3D变换特性,我们可以通过让元素在三维空间中变换来实现一些新奇的效果. 这篇文章分享的这款 jQuery 立体图片滑块插件,利用了 3D transforms(变换)属性来实现多种不 ...
- 一款基于css3的3D图片翻页切换特效
今天给大家分享一款基于css3的3D图片翻页切换特效.单击图片下方的滑块会切换上方的图片.动起你的鼠标试试吧,效果图如下: 在线预览 源码下载 实现的代码. html代码: <div id= ...
- 基于css3的3D立方体旋转特效
今天给大家分享一款基于css3的3D立方体旋转特效.这款特效适用浏览器:360.FireFox.Chrome.Safari.Opera.傲游.搜狗.世界之窗. 不支持IE8及以下浏览器.效果图如下 : ...
- HTML5和CSS3实现3D转换效果 CSS3的3D效果
上次,我们一起研究了css3的2d模块,这次我们一起来看一下css3的3d模块. 首先,我们来了解一下3d的坐标系,x轴在屏幕上为水平方向,y轴为垂直方向,而z轴为垂直于屏幕的方向. 不理解的话可以参 ...
随机推荐
- iscsi initiator端Note
iscsi initiator端 (1)安装open-scsi sudo apt-get install open-iscsi open-iscsi-utils (2)cha ...
- cannot use 'throw' with exceptions disabled(转)
在为 DragonBonesCPP/refactoring 的 cocos2d-x-3.2 demo 增加 Android 编译时,NDK 报了一个编译错误: error: cannot use ‘t ...
- 对threading模块源码文件的解读(不全)
# -*- coding: utf-8 -*- #python 27 #xiaodeng #对threading模块源码文件的解读(不全) import threading #类 #Thread() ...
- mybatis对mysql进行分页
Mybatis对mysql数据库分页 在generator中增加插件,下载地址http://download.csdn.net/detail/shunlongjin/6937045 <plugi ...
- Android 5.0 + IDA 6.8 调试经验分享
如今升级快.网上的资料仅仅能做參考. 学到了NDK逆向这一块,昨天为了能让IDA 能动态调试SO,瞎折腾了非常久,这里分享一下我的经验. 工具: IDA pro 6.8 Android 5.x IDA ...
- Android API之java.lang.String
boolean java.lang.String.contains(CharSequence cs) String字符串是否包含CharSequence(cs).
- HDUOJ---------2255奔小康赚大钱
奔小康赚大钱 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Sub ...
- SQL语句面试题
一条SQL查询,一个表中按日期的累加数据如表: tmp_pay_amount pay_time amount 2013-11-1 10 2013-11-2 5 2013-11-3 4 2013-11- ...
- Windows右键菜单设置与应用技巧
http://blog.163.com/lee_honleon/blog/static/555251522008014258896/ 需要修改注册表,挺麻烦的.最好还是把迅雷卸了重装,不会影响什么 ...
- HighCharts: 设置时间图x轴的宽度
这个x轴宽度的设置整了好久,被老板催的要死 highcharts的api文档很难找,找了半天也没找到,网上资料少,说的试了下,也没有,我用的图里api文档里没有介绍,这个属性不知道的话,根本不好找.为 ...