initial commit
This commit is contained in:
40
index.html
Executable file
40
index.html
Executable file
@@ -0,0 +1,40 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-Hans">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
||||
<title>粒子效果</title>
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #010223;
|
||||
}
|
||||
|
||||
canvas {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="canvas"></canvas>
|
||||
<script type="text/javascript" src="js/particle.js"></script>
|
||||
<script type="text/javascript">
|
||||
var particle = new Particle({
|
||||
canvas: document.getElementById('canvas'),
|
||||
fps: 24,
|
||||
ballNumber: 100,
|
||||
ballMinSize: 1,
|
||||
ballMaxSize: 5,
|
||||
color: 'rgba(84, 23, 196, 0.75)'
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user