threejs布局实现一个羊圈效果
代码语言:html
所属分类:三维
代码描述:threejs布局实现一个羊圈效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
margin: 0;
overflow: hidden;
background: #d3dfdd;
display: -webkit-box;
display: flex;
-webkit-box-pack: center;
justify-content: center;
-webkit-box-align: center;
align-items: center;
align-content: center;
}
div#smoke {
position: fixed;
bottom: 0;
width: 100vw;
height: 30vh;
background-image: -webkit-gradient(
linear,
left top, left bottom,
from(rgba(211, 223, 221, 0)),
color-stop(65%, rgba(211, 223, 221, 0.8))
);
background-image: linear-gradient(
rgba(211, 223, 221, 0) 0%,
rgba(211, 223, 221, 0.8) 65%
);
}
/* Name Badge */
html,
body {
margin: 0;
padding: 0;
overflow: hidden;
}
#name-card-container {
position: fixed;
bottom: 0px;
height: 38px;
width: 100%;
display: -webkit-box;
display: flex;
-webkit-box-pack: center;
justify-content: center;
}
#name-card {
display: -webkit-box;
display: flex;
-webkit-box-pack: center;
justify-content: center;
font-family: Avenir;
font-size: 14px;
font-weight: 500;
line-height: 38px;
border-radius: 4px 4px 0 0;
overflow: hidden;
box-sh.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0