splinecode实现太空圆环球体星体天体背景动画效果代码

代码语言:html

所属分类:背景

代码描述:splinecode实现太空圆环球体星体天体背景动画效果代码

代码标签: splinecode 太空 圆环 球体 星体 天体 背景 动画

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

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

<head>
  <meta charset="UTF-8">
  
  
  
  
<style>
@import url("https://fonts.googleapis.com/css2?family=Audiowide&display=swap");
:root {
  --background-color: black;
}

@property --Y {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@property --Z {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
body {
  padding: 0;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--background-color);
  isolation: isolate;
}

canvas {
  position: absolute;
  mix-blend-mode: color;
}

h1.space {
  position: relative;
  font-size: 2rem;
  z-index: 9;
  line-height: 2;
  font-family: "Audiowide", sans-serif;
  transform-style: preserve-3d;
  perspective: 500px;
  filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.3));
  color: #FFFF00;
}
h1.space span {
  display: inline-block;
  transform: translateZ(var(--Z)) rotateY(var(--Y));
  animation: move 1s ease-in-out infinite alternate;
  animation-delay: calc(var(--i.........完整代码请登录后点击上方下载按钮下载查看

网友评论0