一个很是赞的网页背景效果——canvas-nest

github推荐项目 canvas-nest.js

A nest backgroud of website draw on canvas. javascript

一个基于canvas绘制的网页背景效果,很赞。WordPress插件直接安装,下载地址:https://github.com/aTool-org/canvas-nest-for-wphtml

https://github.com/hustcc/canvas-nest.jsjava

feature 特性

  • do not depend on jQuery or other javascript framework.
    不依赖于任何框架或者库,使用原生js编写。git

  • very light, only 1.59kb. can be smaller after gzip.
    很是轻量级,只有1.59kb(50行代码左右),若是开启gzip更小了。github

  • so easy to use, even you are not a web developer.
    使用起来很是简单,即便你不是web开发者,用起来也没有问题。web

usage 使用

so eazy that I do not want write the chapter.
使用太简单,本身都感受没有必要写这一节了。canvas

insert the code below between <body> and </body>, suggest before the tag </body>.
将下面的代码插入到网页的<body></body>之间,最好是在</body>前面。框架

<html>
<head>
    ...
</head>
<body>
    ...
    ...
    ...
    <script type="text/javascript" src="canvas-nest.min.js"></script>
</body
</html>

please do not add the code in the <head> </head>.
请不要讲代码放到head标签之类,否则不会生效。this

then ok!
而后就行了!spa

preview 预览

  1. OnlineTool: http://www.atool.org/

if you has used this project, pls let me know, I can add your website on.

screenshot

other 其余说明

welcome to push request and issue. 欢迎 pr和issue。

相关文章
相关标签/搜索