41 lines
909 B
HTML
Executable File
41 lines
909 B
HTML
Executable File
<!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>
|