css+js+svg实现破碎的光标效果代码

代码语言:html

所属分类:其他

代码描述:css+js+svg实现破碎的光标效果代码

代码标签: css js svg 破碎 光标

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

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

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

  
  
<style>
body {
            cursor: none;
            margin: 0;
            overflow: hidden;
            background: #111;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        * {
            cursor: none;
            -webkit-user-select: none;
        }

        .cursor {
            position: fixed;
            top: 0;
            left: 0;
            pointer-events: none;
            transform: translate(-50%, -50%);
        }

        button {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background-color: transparent;
            border: none;
            position: relative;
            height: 203px;
            width: 391px;
        }

        #text {
            font-size: 50px;
            color: #515151;
            font-family: 'Inter', sans-serif;
            font-weight: bold;
            text-shadow: 0 -2px 0 rgba(0, 0, 0, 0.25), 0 2px 0 rgba(255, 255, 255, 0.25);

        }

        .btn-svg {
            position: absolute;.........完整代码请登录后点击上方下载按钮下载查看

网友评论0