svg+js实现跟随鼠标灯光照亮立体墙壁文字效果代码

代码语言:html

所属分类:其他

代码描述:svg+js实现跟随鼠标灯光照亮立体墙壁文字效果代码

代码标签: svg js 跟随 鼠标 灯光 照亮 立体 墙壁 文字

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

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">

<link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Dorsa&amp;familiy=Raleway&amp;display=swap'>
<style>
    body {
  background: black;
  cursor: none;
}

.container {
  display: flex;
  position: relative;
  width: 100%;
  height: 100vh;
  align-items: center;
  flex-direction: column;
  filter: url("#noise") url("#light");
  justify-content: center;
  transform: translate3d(0, 0, 0);
  z-index: 1;
  color: #fff;
  text-align: center;
}

.title {
  margin: 0 0 0.075em;
  font-family: "Dorsa", san.........完整代码请登录后点击上方下载按钮下载查看

网友评论0