div+css实现文字倒影阴影效果代码

代码语言:html

所属分类:布局界面

代码描述:div+css实现文字倒影阴影效果代码

代码标签: div css 文字 倒影 阴影

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

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

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


  
  
<style>
@import url("https://fonts.googleapis.com/css2?family=Onest:wght@900&display=swap");
h1 {
  position: relative;
  margin: 0;
  padding: 0;
  perspective: 12px;
  perspective-origin: 50% 0%;
}
h1 span, h1::after {
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  scale: 0.7 1.6;
  inset-block-start: -0.45em;
  transform: rotateX(-8deg);
}
h1 span {
  position: absolute;
  z-index: 1;
}
h1::after {
  display: block;
  position: relative;
  content: attr(arial-label);
  filter: blur(1px) contrast(3);
  text-shadow: 0px 3px 9px #e46e6e, 0px 8px 12px #9e7639;
  mix-blend-mode: hard-light;
}
h1::before {
  content: attr(arial-label);
  display: block;
  position: absolute;
  inset-block-start: 0.6em;
  filter: blur(0.065em) contrast(5);
  font-weight: 900;
  letter-spacing: calc(1em * 0.05);
  text-shadow: 0px 0.1em 0.13em #b08747, 0px 0.5em 0.16em #5539b7;
  text-transform: uppercase;
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0