canvas文字发光倒影鼠标移动交互动画i效果代码

代码语言:html

所属分类:其他

代码描述:canvas文字发光倒影鼠标移动交互动画i效果代码

代码标签: canvas 文字 发光 倒影 鼠标 移动 交互 动画i

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

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

<head>
    <meta charset="UTF-8">
<style>
    body, html {
  margin: 0;
  background: -webkit-radial-gradient(center, ellipse cover, #111 10%, #333 90%);
}

canvas {
  display: block;
  cursor: crosshair;
}

h2 {
  position: absolute;
  bottom: 10px;
  width: 100%;
  letter-spacing: 4px;
  text-align: center;
  font-weight: bold;
  font-size: 1em;
  font-family: Arial, Helvetica, sans-serif;
  color: #AAA;
}
</style>

</head>

<body>
    <!-- partial:index.partial.html -->
    <canvas id="canvas"></canvas>
    <h2>Move the mouse!</h2>

    <script >
    /*
  Johan Karlsson
  https://git.........完整代码请登录后点击上方下载按钮下载查看

网友评论0