<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>立方体动画</title>
<style type="text/css">
body,div,p,ul,ol,li,dl,dt,dd,table,tr,td,form,hr,fieldset,h1,h2,h3,h4,h5,h6,img,input{
margin:0;
padding:0;
}
html,body{
height: 100%;
}
body{
/*background: url(img/body_bg.png) repeat-x;*/
background-size: 100% 100%;
display: flex;
justify-content: center;
align-items: center;
}
.box{
width: 200px;
height: 200px;
/*background: blue;*/
transform-style: preserve-3d;
/*transform:rotateY(30deg) rotateX(-15deg);*/
animation:lft_ani 8s infinite linear;
}
.box a{
display: block;
opacity: .4;
border: 1px solid black;
transform-style:preserve-3d;
}
.box .small{
width: 100px;
height: 100px;
background: #18fa07;
position: absolute;
left: 50px;
top: 50px;
}
.box .big{
width: 200px;
height: 200px;
background:#2501fd;
position: absolute;
left: 0;
top: 0;
transition: all 1s;
} .box .big:nth-of-type(1){
transform:translateZ(100px);
}
.box .big:nth-of-type(2){
transform:translateZ(-100px);
}
.box .big:nth-of-type(3){
transform:rotateY(-90deg) translateZ(100px);
}
.box .big:nth-of-type(4){
transform:rotateY(90deg) translateZ(100px);
}
.box .big:nth-of-type(5){
transform:rotateX(90deg) translateZ(100px);
}
.box .big:nth-of-type(6){
transform:rotateX(-90deg) translateZ(100px);
} .box:hover .big:nth-of-type(1){
transform:translateZ(150px);
}
.box:hover .big:nth-of-type(2){
transform:translateZ(-150px);
}
.box:hover .big:nth-of-type(3){
transform:rotateY(-90deg) translateZ(150px);
}
.box:hover .big:nth-of-type(4){
transform:rotateY(90deg) translateZ(150px);
}
.box:hover .big:nth-of-type(5){
transform:rotateX(90deg) translateZ(150px);
}
.box:hover .big:nth-of-type(6){
transform:rotateX(-90deg) translateZ(150px);
} .box:hover{
animation:lft_ani 8s infinite linear paused;
} .box .small:nth-of-type(7){
transform:translateZ(50px);
}
.box .small:nth-of-type(8){
transform:translateZ(-50px);
}
.box .small:nth-of-type(9){
transform:rotateY(-90deg) translateZ(50px);
}
.box .small:nth-of-type(10){
transform:rotateY(90deg) translateZ(50px);
}
.box .small:nth-of-type(11){
transform:rotateX(90deg) translateZ(50px);
}
.box .small:nth-of-type(12){
transform:rotateX(-90deg) translateZ(50px);
} @keyframes lft_ani{
0%{
transform:rotateX(0deg) rotateY(0deg);
}
100%{
transform:rotateX(360deg) rotateY(360deg);
}
} </style>
</head>
<body>
<div class="box">
<a href="#" class="big"></a>
<a href="#" class="big"></a>
<a href="#" class="big"></a>
<a href="#" class="big"></a>
<a href="#" class="big"></a>
<a href="#" class="big"></a>
<a href="#" class="small"></a>
<a href="#" class="small"></a>
<a href="#" class="small"></a>
<a href="#" class="small"></a>
<a href="#" class="small"></a>
<a href="#" class="small"></a>
</div>
</body>
</html>

(六)HTML5立方体动画设置的更多相关文章

  1. HTML5 3D动画效果

    对以前来讲,3D动画拿到网页上展示是一件非常奢侈的事情,第一是浏览器不够先进,第二是大部分只能用flash实现伪3D.HTML5的出现,让实现网页3D动画变得非常简单,当然前提是你不要再使用像IE67 ...

  2. 7款超酷HTML5 3D动画精选应用及源码

    对以前来讲,3D动画拿到网页上展示是一件非常奢侈的事情,第一是浏览器不够先进,第二是大部分只能用flash实现伪3D.HTML5的出现,让实现网页3D动画变得非常简单,当然前提是你不要再使用像IE67 ...

  3. 超给力的HTML5 3D动画欣赏及源码下载

    HTML5有着非常巨大的魅力,尤其是CSS3和Cavnas,可以帮助页面渲染得非常炫酷.值得一提的是,利用HTML5的3D特性可以帮助你更加方便地在网页上实现3D动画特效.本文分享的这些HTML5 3 ...

  4. 基于HTML5/CSS3可折叠的3D立方体动画

    今天要给大家带来另外一款CSS3 3D立方体动画,尤其在DEMO2中可以看到,鼠标滑过立方体后,它将会被打开,从里面弹出另外一个小立方体,动画效果非常酷,非常逼真. 在线预览   源码下载 实现的代码 ...

  5. 【转】15个无比华丽的HTML5/CSS3动画应用

    原文转自:http://www.html5cn.org/article-7089-1.html 前几天,HTML5标准已经尘埃落定,未来的Web将会是由HTML5主导,当然作为开发者对这一喜讯更为动心 ...

  6. 8个经典炫酷的HTML5 Canvas动画欣赏

    HTML5非常强大,尤其是Canvas技术的应用,让HTML5几乎可以完成所有Flash能完成的效果.本文精选了8个经典炫酷的HTML5 Canvas动画欣赏,每一个都提供全部的源代码,希望对你有所帮 ...

  7. 8款效果惊艳的HTML5 3D动画

    1.HTML5 WebGL水面水波荡漾特效 之前已经向各位分享过一款很逼真的HTML5水波荡漾特效,效果还算不错.今天再向大家分享一款更加给力的HTML5水波动画,画面上是一个大水池,水池底部是一颗大 ...

  8. 纯CSS3超酷3D旋转立方体动画特效

    简要教程 这是一款神奇的纯 CSS3 立方体动画特效插件.使用CSS3来制作动画效果已经成为WEB前端开发的一种时尚,从简单的颜色和尺寸动画,到复杂的旋转.翻转动画, CSS3 展现了它无穷的魅力.使 ...

  9. 14款超时尚的HTML5时钟动画

    时钟动画在网页应用中也非常广泛,在一些个人博客中,我们经常会看到一些相当个性化的HTML5时钟动画.今天我们向大家分享了14款形态各异的超时尚HTML5时钟动画,其中有圆盘时钟.3D时钟.个性化时钟等 ...

随机推荐

  1. ZooKeeper的使用:安装、常用的命令

    公司项目需要使用dubbo,因此,自己做个小Demo就很有必要了,也有助于自己理解和使用,前期准备工作当然就必不可少了,因为dubbo是发布到zookeeper的服务,故先把zookeeper的环境先 ...

  2. cdoj1324卿学姐与公主

    地址:http://acm.uestc.edu.cn/#/problem/show/1324 卿学姐与公主 Time Limit: 2000/1000MS (Java/Others)     Memo ...

  3. HDU 3966 Aragorn's Story (树链剖分入门题)

    树上路径区间更新,单点查询. 线段树和树状数组都可以用于本题的维护. 线段树: #include<cstdio> #include<iostream> #include< ...

  4. Java并发之CyclicBarria的使用(二)

    Java并发之CyclicBarria的使用(二) 一.简介 之前借助于其他大神写过一篇关于CyclicBarria用法的博文,但是内心总是感觉丝丝的愧疚,因为笔者喜欢原创,而不喜欢去转载一些其他的文 ...

  5. python的垃圾回收机制 继承的顺序C3算法

    Python垃圾回收    -- 引用计数        -- Python为每个对象维护一个引用计数        -- 当引用计数为0的 代表这个对象为垃圾    -- 标记清除        - ...

  6. 伸展树基础(Splay)

    3224: Tyvj 1728 普通平衡树 Time Limit: 10 Sec  Memory Limit: 128 MBSubmit: 3948  Solved: 1627 [Submit][St ...

  7. session的活化与钝化 (转)

    session的活化与钝化就是当用户访问时网站异常,不能丢掉session,所有也必须采用文件存储:和之前那个统计网站访问量一样的原理. class Person implements必须实现这两个接 ...

  8. IOS 出现错误 :Reason: image not found

    把Build Phases 里HyphenateLite.framework后边的选项修改成为Optional就可以了 dyld  后面有提示  HyphenateLite.framework

  9. Google maps api demo 2

    demo /** * @fileoverview Sample showing capturing a KML file click * and displaying the contents in ...

  10. Jquery.LazyLoad.js实现图片延迟加载功能

    从网上下载来的版本多多少少都有些BUG,尤其是加载后在IE6和IE7下图片闪动是个大问题,在网上查了很久,也没有找到相关的解决方案.没解决方案,就得发挥咱DIY的精神,自己想法解决,分析了BUG,理了 ...