css实现文字走光反转动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现文字走光反转动画效果代码

代码标签: css 文字 走光 反转 动画

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


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

<head>

  <meta charset="UTF-8">
  

  
  
<style>
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@900&display=swap");

:root {
  font-family: "Montserrat", sans-serif;
}

.txt {
  position: relative;
  color: #efeffe;
  background-color: #080505;
}

.txt:before {
  position: absolute;
  content: "";
  top: 0;
  height: 100%;
  left: 3rem;
  width: 10rem;
  backdrop-filter: 
    brightness(300%) 
    contrast(300%) 
    invert(1);
}

/* fluff */
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: 
    linear-gradient(red, transparent),
    linear-gradient(to top left, lime, transparent),
    linear-gradient(to top right, blue, transparent);
  background-blend-mode: screen;
}

.txt {
  padding: 10vmin;
  border-radius: 0.25em;
  .........完整代码请登录后点击上方下载按钮下载查看

网友评论0