3D动画
来源:互联网 发布:mysql唯一约束默认1 编辑:程序博客网 时间:2024/04/28 20:59
<!doctype html>
<html lang="zh-cn">
<head>
<title>作业</title>
<meta charset="utf-8">
<style>
#stages{
perspective:1000px;
}
#content{
width:800px;
height:400px;
margin:100px auto;
position:relative;
transform:rotateX(-30deg);
transform-style:preserve-3d;
transition:transform 3s linear;
}
#content>div{
width:100px;
height:100px;
background:red;
position:absolute;
left:350px;
top:150px;
}
#content div:nth-child(1){
transform:translateZ(200px);
}
#content div:nth-child(2){
transform:rotatey(40deg) translateZ(200px);
}
#content div:nth-child(3){
transform:rotatey(80deg) translateZ(200px);
}
#content div:nth-child(4){
transform:rotatey(120deg) translateZ(200px);
}
#content div:nth-child(5){
transform:rotatey(160deg) translateZ(200px);
}
#content div:nth-child(6){
transform:rotatey(200deg) translateZ(200px);
}
#content div:nth-child(7){
transform:rotatey(240deg) translateZ(200px);
}
#content div:nth-child(8){
transform:rotatey(280deg) translateZ(200px);
}
#content div:nth-child(9){
transform:rotatey(320deg) translateZ(200px);
}
#content:hover{
transform:rotatey(290deg);
}
</style>
</head>
<body>
<div id="stages">
<div id="content">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</body>
</html>
<html lang="zh-cn">
<head>
<title>作业</title>
<meta charset="utf-8">
<style>
#stages{
perspective:1000px;
}
#content{
width:800px;
height:400px;
margin:100px auto;
position:relative;
transform:rotateX(-30deg);
transform-style:preserve-3d;
transition:transform 3s linear;
}
#content>div{
width:100px;
height:100px;
background:red;
position:absolute;
left:350px;
top:150px;
}
#content div:nth-child(1){
transform:translateZ(200px);
}
#content div:nth-child(2){
transform:rotatey(40deg) translateZ(200px);
}
#content div:nth-child(3){
transform:rotatey(80deg) translateZ(200px);
}
#content div:nth-child(4){
transform:rotatey(120deg) translateZ(200px);
}
#content div:nth-child(5){
transform:rotatey(160deg) translateZ(200px);
}
#content div:nth-child(6){
transform:rotatey(200deg) translateZ(200px);
}
#content div:nth-child(7){
transform:rotatey(240deg) translateZ(200px);
}
#content div:nth-child(8){
transform:rotatey(280deg) translateZ(200px);
}
#content div:nth-child(9){
transform:rotatey(320deg) translateZ(200px);
}
#content:hover{
transform:rotatey(290deg);
}
</style>
</head>
<body>
<div id="stages">
<div id="content">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</body>
</html>
0 0
- 3D角色动画
- 小车(3D动画)
- 3D动画种类
- 3D模型动画
- 3D动画
- 3D动画
- 3D动画
- 3D动画
- H5 3D动画
- HTML5(3D动画)
- 3D过渡动画
- CSS3动画-2D、3D转换
- html5 动画(2D 3D)
- CSS动画-2D、3D转换
- Android动画之3D翻转动画
- ApiDemos(3) 3d动画
- 3D游戏角色动画
- 3D游戏角色动画
- POJ1985Cow Marathon(求树的直径模板)
- POJ1013秤硬币
- vue 2.0 单一事件中心管理组件通信
- elasticsearch索引自动清理
- 详细深入分析 Java ClassLoader 工作机制
- 3D动画
- 【0.42】React Native 中文更新日志
- L1-028. 判断素数
- 关于有符号整型int最小值的取值理解
- 设计模式学习笔记——迭代器(Iterator)模式
- 学习python[n] 保存的网址
- 简单的挂钟模拟
- Error- Cannot find module 'gulp-clone'问题的解决
- 打印三角形的通用方法