纯css3写的立方体动画
来源:互联网 发布:手持终端数据采集器 编辑:程序博客网 时间:2024/06/11 21:12
<!DOCTYPE html><html><head><meta charset="UTF-8"><title>HTML5 3D立方体动画DEMO演示</title><style>body { background: #1a1a1a; -webkit-perspective: 600px;}.cube { width: 150px; height: 150px; position: relative; top: 100px; left: 50%; margin-left: -75px; -webkit-transform-style: preserve-3d; -webkit-transform: rotateY(0deg) translateZ(-200px); -webkit-animation-name: rotationMainContainer; -webkit-animation-duration: 5s; -webkit-animation-timing-function: linear; -webkit-animation-iteration-count: infinite; -webkit-animation-play-state: running;}.cube-face { width: 150px; height: 150px; position: absolute; opacity: .95; background: #ff033e; -webkit-transform-origin: 50% 50%; -webkit-animation-duration: 5s; -webkit-animation-timing-function: linear; -webkit-animation-iteration-count: infinite; -webkit-animation-play-state: running;}.cube-face-front { -webkit-transform: translateZ(75px); -webkit-animation-name: bgCAFace;}.cube-face-left { -webkit-transform: rotateY(90deg) translateZ(75px); -webkit-animation-name: bgCALeft;}.cube-face-back { -webkit-transform: translateZ(-75px); -webkit-animation-name: bgCABack;}.cube-face-right { -webkit-transform: rotateY(90deg) translateZ(-75px); -webkit-animation-name: bgCARight;}.cube-face-top { -webkit-transform: rotateX(90deg) translateZ(-75px); -webkit-animation-name: bgCATopBottom;}.cube-face-bottom { -webkit-transform: rotateX(90deg) translateZ(75px); -webkit-animation-name: bgCATopBottom;}@-webkit-keyframes rotationMainContainer { 0% { -webkit-transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); } 100% { -webkit-transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg) }}@-webkit-keyframes bgCAFace { 0% { background: #7F1041; } 25% { background: #FF6DAD; } 50% { background: #FF2182; } 100% { background: #7F3756; }}@-webkit-keyframes bgCALeft { 0% { background: #7F3756; } 25% { background: #7F1041; } 50% { background: #FF6DAD; } 100% { background: #FF2182; }}@-webkit-keyframes bgCABack { 0% { background: #FF2182; } 25% { background: #7F3756; } 50% { background: #7F1041; } 100% { background: #FF6DAD; }}@-webkit-keyframes bgCARight { 0% { background: #FF6DAD; } 25% { background: #FF2182; } 50% { background: #7F3756; } 100% { background: #7F1041; }}@-webkit-keyframes bgCATopBottom { 0% { background: #7F0E2D; } 25% { background: #FF6891; } 50% { background: #FF1C5A; } 100% { background: #7F3449; }}</style></head><body><div style="text-align:center;clear:both;"></div> <div class="cube"> <div class="cube-face cube-face-front"></div> <div class="cube-face cube-face-left"></div> <div class="cube-face cube-face-back"></div> <div class="cube-face cube-face-right"></div> <div class="cube-face cube-face-top"></div> <div class="cube-face cube-face-bottom"></div></div></body></html>
效果图:
0 0
- 纯css3写的立方体动画
- 纯CSS3动画之旋转的立方体
- 纯CSS3超酷3D旋转立方体动画特效
- 纯CSS3超酷3D旋转立方体动画特效
- canvas写的立方体动画
- 纯CSS3实现一个旋转的3D立方体盒子
- 纯CSS3超酷3D旋转立方体动画特效效果演示
- HTML5 CSS3 诱人的实例: 3D立方体旋转动画
- HTML5 CSS3 诱人的实例: 3D立方体旋转动画
- 纯原生态javascript+css3 写的3D魔方动画旋扭特效
- 纯CSS3 实现的新闻联播图标动画
- 纯CSS3实现的蜘蛛爬行动画
- 纯CSS3绘制的小猫笑脸动画
- 纯CSS3实现超炫酷的萤火虫动画
- 纯CSS3实现超酷炫的萤火虫动画
- css3立方体的制作
- css3立方体的实现
- 一些纯css3写的公司logo
- 邮箱正则表达式
- struts1 原理
- SPRING-MVC访问静态文件,如jpg,js,css
- Shell编程入门入篇
- project
- 纯css3写的立方体动画
- 数据库范式
- 哈佛结构和冯·诺依曼结构的区别
- 求去年本月合计(ABAP程序)
- Apache Shiro (三) ---- 授权
- [JavaScript]setTimeout传递对象参数
- 嵌入式操作系统学习笔记:02.环境搭建兼 Eclipse Jlink 2440 ARM裸机调试
- 毕设方向可能需要的书籍
- OC基础