马上过年了,5行代码教你实现放烟花

直接上代码吧

<!DOCTYPE html>
<html lang="zh">
<head><title>Fireworks</title></head>
<body>
	<div class="firework-container" ></div>
	<script src="./js/js/jquery-1.11.0.min.js"></script>
    <script src="./js/js/jquery.fireworks.js"></script>
	<script type="text/javascript">
		$('.firework-container').fireworks({ 
		  sound: false,
		  opacity: 0.9, 
		  width: '100%', 
		  height: '100%' 
		});
	</script>
</body>
</html>

效果如下

你可能感兴趣的:(css样式,js烟花,css3,前端,css,jquery,javascript)