canvas实现下雨夜晚十种不同形状烟花绽放粒子动画效果代码

代码语言:html

所属分类:粒子

代码描述:canvas实现下雨夜晚十种不同形状烟花绽放粒子动画效果代码

代码标签: canvas 下雨 夜晚 十种 不同 形状 烟花 绽放 粒子 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  

<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.4.3.1.min.css">
<style>
@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");

body {
  margin: 0;
  overflow: hidden;
  background: linear-gradient(to bottom, #000033, #000066);
  cursor: crosshair;
  font-family: "Roboto", serif;
}

.controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

#fullscreenBtn {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 20px;
  c.........完整代码请登录后点击上方下载按钮下载查看

网友评论0