css实现霓虹灯文字视觉差异倾斜交互效果代码

代码语言:html

所属分类:视觉差异

代码描述:css实现霓虹灯文字视觉差异倾斜交互效果代码,点击可编辑修改文字。

代码标签: css 霓虹灯 文字 视觉差异

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

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

<head>

    <meta charset="UTF-8">

 
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <style>
        @font-face {
          font-family: "Tilt Neon";
          src: url("//repo.bfw.wiki/bfwrepo/font/TiltNeon.woff2") format("woff2");
        }
        html {
          --hue: 13deg;
          font-family: "Tilt Neon", sans-serif;
          background: #000 radial-gradient(hsl(var(--hue), 100%, 15%) 20%, #000 75%);
          background-size: 140vw 48vw;
          background-repeat: no-repeat;
          background-position: center;
          color: hsl(var(--hue), 100%, 50%);
        }
        
        body {
          width: 100vw;
          height: 100vh;
          margin: 0;
          display: grid;
          place-content: center;
          overflow: hidden;
          perspective: 25vw;
        }
        
        .sign {
          font-weight: 400;
          font-size: 24vw;
          line-height: 1.1;
          margin: 0;
          text-shadow: 0 0 0.1em currentcolor, 0 0 0.05em currentcolor;
          text-align: center;
        }
        
        .flicker {
          transition: opacity 0.4s ease-in-o.........完整代码请登录后点击上方下载按钮下载查看

网友评论0