three+webgl实现炫酷着色器旋转动画效果代码
代码语言:html
所属分类:动画
代码描述:three+webgl实现炫酷着色器旋转动画效果代码
代码标签: three webgl 炫酷 着色器 旋转 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body {
margin: 0;
overflow: hidden;
background: #000;
font-family: "Press Start 2P", cursive;
}
canvas {
width: 100vw;
height: 100vh;
display: block;
}
.button-3d {
position: fixed;
bottom: 20px;
left: 20px;
padding: 15px 25px;
background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
color: white;
text-decoration: none;
border: none;
transform: perspective(500px) rotateX(10deg);
transform-style: preserve-3d;
transition: all 0.3s ease;
text-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
box-shadow: 0 6px 0 #cc5757, 0 8px 10px rgba(0, 0, 0, 0.3);
z-index: 1000;
font-size: 12px;
letter-spacing: 1px;
text-transform: uppercase;
cursor: pointer;
}
.button-3d:hover {
transform: perspective(500px) rotateX(15deg) translateY(-2px);
box-shadow: 0 8px 0 #cc5757, 0 12px 15px rgba(0, 0, 0, 0.3);
}
.button-3d:active {
transform: perspective(500px) rotateX(10deg) translateY(2px);
box-shadow: 0 4px 0 #cc5757, 0 5px 8px rgba(0, 0, 0, 0.3);
}
.credits {
position: fixed;
bottom: 20px;
right: 20px;
color: #ff8e8e;
font-size: 14px;
z-in.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0