svg+css实现图片消融动画效果代码

代码语言:html

所属分类:动画

代码描述:svg+css实现图片消融动画效果代码

代码标签: svg css 图片 消融 动画

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

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

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


  
  
<style>
@font-face {
  src: url("//repo.bfw.wiki/bfwrepo/font/MetaVariableDemo-Set.woff2") format("woff2");
  font-family: "Meta";
  font-style: normal;
  font-weight: normal;
}
body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-content: center;
  font-family: "Meta", system-ui;
  background-color: #1f2020;
}

svg {
  width: 0;
  height: 0;
}

.card {
  width: 80vw;
  min-height: 80vh;
  color: #ba0c2e;
  display: grid;
  place-content: center;
  box-sizing: border-box;
  position: relative;
  overflow: clip;
}
.card:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #f9f6ef;
  background-image: url(//repo.bfw.wiki/bfwrepo/image/5d6539613d08b.png);
  background-size: cover;
  filter: url(#squiggly-0);
  border: 0.5vmin solid #fff;
}

h2 {
  font-size: 8vw;
  font-variation-settings: "wght" 900, "ital" 1;
  font-weight: 900;
  -webkit-text-stroke: 0.1vw #fff;
  filter: url(#squiggly-1);
}

body {
  background-image: repeating-linear-gradient(45deg, #0000 0 1vmin, #aee1cd50 0 2vmin);
}
</style>


  
  
</head>

<body translate="no">
  <div class="card">
  <h2>Happy Holidays</h2>.........完整代码请登录后点击上方下载按钮下载查看

网友评论0