svg+css实现文字镂空filter效果代码

代码语言:html

所属分类:布局界面

代码描述:svg+css实现文字镂空filter效果代码

代码标签: svg css 文字 镂空 filter

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

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

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

  
  
<style>
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { 
  margin: 0; 
  background-image: url('//repo.bfw.wiki/bfwrepo/image/65aefc35a0262.png');
  background-size: cover;
  display: grid;
  place-items: center;
  font-family: system-ui;
  font-weight: 900;
  font-size: 5rem;
}
.remove-black {
  background-color: hsl(0 0% 100% / .9);
  padding: 1rem 2rem;
  color: black;
  filter: url(#remove-black);
}
</style>


  
  
</head>

<body translate="no">

<div class="remove-black">
  HELLO WORLD.........完整代码请登录后点击上方下载按钮下载查看

网友评论0