鼠标跟随粒子发散效果
代码语言:html
所属分类:粒子
代码描述:鼠标跟随粒子发散效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
display: grid;
-webkit-box-pack: center;
justify-content: center;
align-content: center;
height: 100vh;
font: 5vh Lora;
}
a {
color: #222a;
-webkit-text-decoration: #2224 wavy underline;
text-decoration: #2224 wavy underline;
-webkit-transition: all 0.3s;
transition: all 0.3s;
}
a:hover {
color: #2223;
text-shadow: 0 0 100px #333;
}
canvas {
position: fixed;
z-index: -1;
}
</style>
</head>
<body translate="no">
<a href="" >hello</a>
<script>
console.clear();
const canvas = d.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0