css文字发散阴影动画效果代码

代码语言:html

所属分类:动画

代码描述:css文字发散阴影动画效果代码,多重阴影跟随。

代码标签: 阴影 动画 效果

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


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

<head>

  <meta charset="UTF-8">
  

  
  
  
  
<style>
@font-face {
  src: url("https://www.axis-praxis.org/fonts/webfonts/AvenirNext_Variable.woff2") format("woff2");
  font-family: "Avenir";
  font-style: normal;
  font-weight: normal;
}
body {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background-color: black;
  color: transparent;
  font-family: "Avenir";
}

.text {
  font-variation-settings: "wght" 400, "wdth" 100;
  font-size: 10em;
  text-align: center;
  position: absolute;
  animation: text-flow 6s infinite;
}

.text:nth-child(1) {
  animation-delay: 0.25s;
  opacity: 0.9;
  -webkit-text-stroke: 3px #ffb3c0;
  z-index: 0;
}

.text:nth-child(2) {
  animation-delay: 0.5s;
  opacity: 0.8;
  -webkit-text-stroke: 3px #ffa7b6;
  z-index: -1;
}

.text:nth-child(3) {
  animation-delay: 0.75s;
  opacity: 0.7;
  -webkit-text-stroke: 3px #ff9aab;
  z-index: -2;
}

.text:nth-child(4) {
  animation-delay: 1s;
  opacity: 0.6;
  -webkit-text-stroke: 3px #ff8da1;
  z-index: -3;
}

.text:nth-child(5) {
  animation-delay: 1.25s;
  opacity: 0.5;
  -webkit-text-stroke: 3px #ff8096;
  z-index: -4;
}

.text:nth-child(6) {
  animation-delay: 1.5s;
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0