0
点赞
收藏
分享

微信扫一扫

web使用第三方文件快速实现烟花特效

盖码范 2022-03-13 阅读 11

烟花特效有很多种,有用C++和Python写的,但我都不会写!

在网上找的,就喜欢这种简单的!

不用链接的话可以下载两个js文件

<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>html5 canvas全屏烟花动画特效 </title><base target="_blank" />
<link rel="stylesheet" type="text/css" href="http://hovertree.com/texiao/html5/43/css/normalize.css" />
<link rel="stylesheet" type="text/css" href="http://hovertree.com/texiao/html5/43/css/hovertree.css">
</head>
<body>
<div class="hovertree">
</div>
<script type="text/javascript" src="http://down.hovertree.com/jquery/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="http://hovertree.com/texiao/html5/43/js/jquery.fireworks.js"></script>
<script type="text/javascript">
    $('.hovertree').fireworks({
   sound: true, // sound effect
   opacity: 0.9, 
   width: '100%', 
   height: '100%' 
 });
</script>
  
</body>
</html>

可以加上背景和文字,表白很简单呀!
在这里插入图片描述

举报

相关推荐

0 条评论