hexo mouse follow up special effects

一个基于canvas绘制的网页背景效果。

canvas-nest.js is a nest backgroud of website draw on canvas use javascript, do not depend on jQuery.

WordPress插件: https://github.com/aTool-org/canvas-nest-for-wp
github: https://github.com/hustcc/canvas-nest.js

效果如图

canvas nest

使用方法

打开next/layout/_layout.swig 文件,

将下面的代码插入到 和 之间.

1
<script type="text/javascript" src="//cdn.bootcss.com/canvas-nest.js/1.0.1/canvas-nest.min.js"></script>

强烈建议在 </body>标签上方. 例如下面的代码结构:

1
2
3
4
5
6
7
8
9
10
11
<html>
<head>
...
</head>
<body>
...
...
...
<script type="text/javascript" src="//cdn.bootcss.com/canvas-nest.js/1.0.1/canvas-nest.min.js"></script>
</body>
</html>

请注意不要将代码置于<head> </head>里面.