js+css实现文字阴影跟随鼠标交互效果代码

代码语言:html

所属分类:其他

代码描述:js+css实现文字阴影跟随鼠标交互效果代码

代码标签: js css 文字 阴影 跟随 鼠标 交互

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

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

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


    <link rel="canonical" href="https://codepen.io/andreaswik/pen/vYqPXpM">
  <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Shrikhand&display=swap" rel="stylesheet">
  
  
  
<style>
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Georama', sans-serif;
    font-family: "Shrikhand", serif;
    background: #FCB043;
}

#splash {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1 {
    font-size: 90px;
    text-align: cente.........完整代码请登录后点击上方下载按钮下载查看

网友评论0