three实现立方体爬上楼梯堆叠动画效果代码
代码语言:html
所属分类:三维
代码描述:three实现立方体爬上楼梯堆叠动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url(https://fonts.googleapis.com/css?family=Open+Sans:800);
body{
margin: 0;
padding: 0;
overflow: hidden;
}
footer{
position: absolute;
padding: 15px;
bottom: 0;
}
footer a{
font-family:'Open Sans', sans-serif;
font-size: 14px;
color: #212121;
text-decoration: underline;
}
</style>
</head>
<body>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/TweenMax.min.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/three.72.js"></script>
<script>
var that;
var StairwayCubes = function () {
this.scene = new THREE.Scene();
that = this;
};
StairwayCubes.prototype.init = function () {
this.createCamera();
this.createRenderer();
this.createBoxes();
this.createFloor();
this.createLights();
this.animateBoxes();
this.render();
};
StairwayCubes.prototype.createCamera = function () {
this.camera = new THREE.OrthographicCamera(wi.........完整代码请登录后点击上方下载按钮下载查看
网友评论0