three实现沙子堆积的城堡代码

代码语言:html

所属分类:三维

代码描述:three实现沙子堆积的城堡代码

代码标签: three 沙子 堆积 城堡 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">

  
  
  
<style>
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: Inter, system-ui, sans-serif;
  background: #f2a070;
}

.sky-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    #f2a070 0%,
    #f7bd8b 20%,
    #bcecf5 48%,
    #98dce8 100%
  );
}

.sun {
  position: absolute;
  right: 14%;
  top: 05%;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #ffd66b;
  box-shadow: 0 0 42px rgba(255, 214, 107, 0.45);
}

.ocean {
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  height: 12%;
  background: repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.16) 0 2px,
      transparent 2px 18px
    ),
    linear-gradient(to bottom, #139fb4, #0f879b);
  animation: oceanMove 8s linear infinite;
}

@keyframes oceanMove {
  to {
  .........完整代码请登录后点击上方下载按钮下载查看

网友评论0