css实现文字扫描动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现文字扫描动画效果代码

代码标签: css 文字 扫描 动画

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

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

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

    <style>
        body {
      background: #72B565;
    }
    
    .wrapper {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 235px;
      height: 70px;
      white-space: nowrap;
    }
    
    .focus {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-family: Arial;
      text-transform: uppercase;
      letter-spacing: 2px;
      filter: blur(3px);
      font-size: 65px;
      opacity: 0.6;
      color: #fff;
    }
    
    .mask {
      position: absolute;
      left: -5px;
      top: -2px;
      width: 70px;
      font-family: Arial;
      font-weight: bold;
      text-transform: uppercase;
      letter-spacing: 2px;
      font-size: 65px;
      clip: rect(0px, 70px, 75px, 0px);
      background: linear-gradient(#fff, #fff 0) no-repeat, linear-gradient(to right, #fff, #fff 0) no-repeat, linear-gradient(to right, #fff, #fff 0) bottom left no-repeat, linear-gradient(to right, #fff, #fff 0) bottom left no-repeat, linear-gradient(#fff, #fff 0) bottom right no-repeat, linear-gradient(#fff, #fff 0) bottom right no-repeat, linear-gradient(#fff, #fff 0) top right no-repeat, linear-g.........完整代码请登录后点击上方下载按钮下载查看

网友评论0