css布局实现砖头墙文字效果代码

代码语言:html

所属分类:布局界面

代码描述:css布局实现砖头墙文字效果代码

代码标签: css 布局 砖头 文字

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

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

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

  
<style>
@import url(https://fonts.bunny.net/css?family=kode-mono:700|sixtyfour:400);


*{
  box-sizing: border-box;
}
body{
  min-height: 100svh;
  padding: 0;
 font-family: 'Kode Mono', monospace;
  background: #000;
  display: grid;
  place-content: center;
}
.wrapper{
  position: relative;
  max-width: 4ch;
  margin: 0;
  padding: 0;
  font-size: clamp(6rem, 15vw - .05rem ,24rem);
  font-weight: 800;
  color: transparent;
  text-transform: uppercase;
  text-align: right;
  line-height: .8;
  background-image: url("//repo.bfw.wiki/bfwrepo/image/673bd88b308d7.png");
  background-size: cover;
  background-repeat: no.........完整代码请登录后点击上方下载按钮下载查看

网友评论0