js+css实现鼠标滚动滚动墨水文字液态融合动画效果代码

代码语言:html

所属分类:加载滚动

代码描述:js+css实现鼠标滚动滚动墨水文字液态融合动画效果代码

代码标签: js css 鼠标 滚动 滚动 墨水 文字 液态 融合 动画

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

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
<style>
    body, html{
  background: #f0ede4;
  background-image: url("//repo.bfw.wiki/bfwrepo/image/665e615502a9c.png");
    background-size: 100%;
  background-repeat: repeat;
/*   filter: sepia(40%) contrast(100%); */
  filter: brightness(110%);
}
.bg{
  width: 100%;
  height: 100%;
  position: absolute;
  background-image: url("//repo.bfw.wiki/bfwrepo/image/665e61658d3c1.png");
  background-size: 100%;
  background-repeat: repeat;
  filter: invert(1);
  mix-blend-mode: screen;
  z-index: 1;
  pointer-events: none;
}

.text {
  color: #000;
  letter-spacing: -0.05em;
  font-weight: 700;
  font-size: 24px;
  font-family: Playfair Display;
  font-style: italic;
  text-align: center;
}
.goo {
  color: #121212;
  letter-spacing: -0.05em;
  font-weight: 700;
  font-size: 180px;
  font-family: Playfair Display;
  font-style: italic;
  filter: url(#goof);
  text-align: center;
  z-index: 2;
}
</style>

</head>
<body>

<div class="bg"></div>


<div class="text">鼠标滚轮滚动看效果</div>
<div class="goo">bfw.wiki</div>

<svg style={{visibility: "hidden", position: "absolute"}} width="0" height="0"  xmlns="http://www.w3.org/2000/svg" version="1.1">
        <defs>
            <filter id="goof">
              <feGaussianBlur in="SourceGraphic&qu.........完整代码请登录后点击上方下载按钮下载查看

网友评论0