three实现三维男人在草坪上行走骨骼动画效果代码
代码语言:html
所属分类:三维
代码描述:three实现三维男人在草坪上行走骨骼动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body {
height: 100%;
margin: 0;
padding: 0;
color: #ccc;
background-color: #404040;
font-family: Monospace;
font-size: 13px;
overflow: hidden;
}
#container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
#message {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
#message > div {
position: absolute;
top: 50%;
left: 50%;
margin: 0;
padding: 0;
transform: translate(-50%, -50%);
}
.error {
color: orange;
}
.fade {
opacity: 1;
transition: opacity 1s linear;
}
.fade[hidden] {
display: inherit;
visibility: hidden;
opacity: 0 !important;
transition: visibility 0s 1s, opacity 1s linear;
}
</style>
</head>
<body>
<div id="container" class="fade" hidden></div>
<div id="message" class="fade">
<div>Loading …</div>
</div>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/three.84.js"></script>
<script >
// constants
const SCENE_URL = '//repo.bfw.wiki/bfw.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0