纯css实现文字溢出阴影遮罩效果

代码语言:html

所属分类:布局界面

代码描述:纯css实现文字溢出阴影遮罩效果

代码标签: 文字 溢出 阴影 遮罩 效果

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

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
* {
  box-sizing: border-box;
}

body, html {
  width: 100%;
  min-height: 100%;
}

body {
  background: #100e17;
  z-index: -3;
  position: relative;
}

html {
  background: white;
  font: 16px sans-serif;
  color: #fff;
  background: #100e17;
}

h1 {
  text-align: center;
  margin-bottom: 0px;
  color: #fff;
}

footer {
  margin-top: 10px;
}
footer a {
  font-weight: bold;
  text-decoration: none;
  background: -webkit-gradient(linear, right top, left top, from(#ff8a00), to(#e52e71));
  background: linear-gradient(270deg, #ff8a00, #e52e71);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
footer a:hover {
  background: none;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: #fff;
  text-decoration: underline;
}

p {
  text-align: center;
  font-size: 20px;
  margin-bottom: 5px;
}
p.lead {
  font-weight: bold;
  color: #fff;
  margin-bottom: 1em;
  .........完整代码请登录后点击上方下载按钮下载查看

网友评论0