css实现文字在马路上倒影透视效果代码

代码语言:html

所属分类:布局界面

代码描述:css实现文字在马路上倒影透视效果代码

代码标签: css 文字 马路 倒影 透视

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


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

<head>

  <meta charset="UTF-8">


<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700&display=swap" rel="stylesheet">
  
  
  
<style>
*{
  box-sizing: border-box;
}
body {
  display: grid;
  place-content: center;
  background-color: hsl(0, 0%, 0%);
  grid-template-columns: 100%;
  min-height: 90vh;
}
.wrapper {
  background-image: url(//repo.bfw.wiki/bfwrepo/image/626b1dea88446.png);
  background-color: rgba(0, 0, 0, 0.779);
  background-blend-mode: color;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  aspect-ratio: 16/9;

  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  padding-block-end: 2rem;
  padding-inline: 2rem;
  overflow-x: clip;

  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 15vw, 15rem);
  font-weight: 700;
  text-transform: uppercase;

  perspective: 2.5em;
}

.g.........完整代码请登录后点击上方下载按钮下载查看

网友评论0