three做个三维文字切片动画代码
代码语言:html
所属分类:动画
代码描述:three做个三维文字切片动画代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
* {
margin: 0;
padding: 0;
border: none;
outline: 0px;
font-size: 11px;
line-height: 1rem;
font-family: monospace;
box-sizing: border-box;
}
html, body, canvas {
width: 100%;
height: 100%;
}
body {
position: fixed;
overflow: hidden;
}
span::selection {
background: #faa7;
}
#log {
position: absolute;
z-index: 1;
bottom: 0;
right: 0;
padding: 0.5em 0.75em;
font-size: 12px;
font-family: monospace;
white-space: pre-line;
text-align: right;
color: grey;
}
</style>
</head>
<body translate="no">
<div id="log"></div>
<canvas id="canvas"></canvas>
<script type="module">
import * as THREE from "https://esm.sh/three@0.185.1";
import { ShaderPass } from "https://esm.sh/three@0.185.1/examples/jsm/postprocessing/ShaderPass.js";
import { HorizontalBlu.........完整代码请登录后点击上方下载按钮下载查看















网友评论0