tsparticles三角形粒子随机运动效果

代码语言:html

所属分类:粒子

代码描述:tsparticles三角形粒子随机运动效果

代码标签: 随机 运动 效果

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

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
/* ---- reset ---- */
body {
  margin: 0;
  font: normal 75% Arial, Helvetica, sans-serif;
}
canvas {
  display: block;
  vertical-align: bottom;
}
/* ---- tsparticles container ---- */
#tsparticles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #0d47a1;
  background-image: url("");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
}
</style>

</head>
<body translate="no">

<div id="tsparticles"></div>
<script type="text/javascript" src="http://repo.bfw.wiki/bfwrepo/js/tsparticles.1.15.js"></script>
<script >
tsParticles.load("tsparticles", {
  fpsLimit: 60,
  particles: {
    number: {
      value: 80,
      density: {
        enable: true,
        value_area: 800 } },


    color: {
      value: "#ff0000",
      animation: {
        enable: true,
        speed: 20,
        sync: true } },


    shape: {
      type: "circle",
      stroke: {
        width: 0,
        color: "#000000" },

      polygon: {
        nb_sides: 5 },

 },


    opacity: {
      value: 0.5,
      random: false,
      anim: {
        enable: false,
        speed: 3,
        opacity_min: 0.1,
        sync: false } },


    size: {
      value: 3,
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0