vfx+sdf实现炫酷的液态文本3d动画效果代码

代码语言:html

所属分类:动画

代码描述:vfx+sdf实现炫酷的液态文本3d动画效果代码

代码标签: vfx sdf 炫酷 液态 文本 3d 动画

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

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

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


  
  
<style>
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&display=swap');


html, body { height: 100%; margin: 0; }
body {
  background: black;
  display: grid;
  place-content: center;
  overflow-x: hidden;
}
img {
  position: fixed;
  width: 100%;
  height: 100%;
  object-fit: stretch;
}

h1 {
  margin: 0;
  font-size: 15vh;
  line-height: 1.2;
  max-width: 100%; 

  font-family: "Cinzel Decorative";
  text-align: center;
  color: white;
  opacity: 0;
}
</style>


  
</head>

<body translate="no">
  <h1>BFW</h1>
  
      <script  type="module">
// Using VFX-JS.
// https://amagi.dev/vfx-js
import { VFX } from "https://esm.sh/@vfx-js/core";
import { getSDFImage } from "https://esm.sh/@fand/image-to-sdf@0.1.0";

const shader = `
precision highp f.........完整代码请登录后点击上方下载按钮下载查看

网友评论0