实例:过年3D烟花秀
技术栈:HTML+CSS+JS
效果:
源码:
【HTML】
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>过年3D烟花秀,在此祝大家新年快乐,恭喜发财!</title>
<link rel="stylesheet" href="202.css">
</head>
<body>
<canvas id="canvas" data-text="新年快乐"></canvas>
<script src="fireworks/fireworks.min.js"></script>
</body>
</html>
【CSS】