Understanding-4D/spline scenes/4_d_donut_creation/index.html

57 lines
2.2 KiB
HTML
Raw Permalink Normal View History

2021-08-21 20:45:29 +02:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body { width: 100%;
height: 100%;
margin: 0;
position: fixed;
background: rgba(25,25,25, 1) }
canvas { width: 100%; height: 100%; outline: none; }
#container { width: 100%; height: 100%; position: relative; }
.spline-watermark {
position: absolute;
bottom: 16px;
right: 16px;
width: 32px;
height: 32px;
z-index: 2;
}
.spline-watermark:hover {
opacity: 0.8;
}
.spline-watermark img {
display: block;
width: 100%;
height: 100%;
}
</style>
<title>4D donut creation</title>
<link rel="icon" type="image/png" href="https://spline.design/_assets/_images/icon_favicon16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="https://spline.design/_assets/_images/icon_favicon32x32.png" sizes="32x32">
</head>
<body>
<div id='container'>
<canvas id="canvas3d"></canvas>
<a class="spline-watermark" href="https://spline.design">
<img src="https://spline.design/_assets/_images/icon_favicon32x32.png">
</a>
</div>
<script src="https://unpkg.com/three@0.131.3/build/three.min.js"></script>
<script src="js/spline.runtime.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>