可以编辑粒子特效的编辑器,可导出json

代码语言:html

所属分类:粒子

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

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

<title> particleEditor.json</title>

<style>
      html, body {
  margin: 0;
  background: #131417;
  color: #FFF;
  font-family: 'Inconsolata', monospace;
  height: 100%;
}

body {
  box-sizing: border-box;
  padding: 1em;
  font-size: 18px;
  display: flex;
}
@media (max-width: 650px) {
  body {
    font-size: 16px;
  }
}
@media (max-width: 500px) {
  body {
    font-size: 14px;
  }
}

.container {
  margin: auto;
  width: 30em;
}
.container * {
  box-sizing: border-box;
}
.container .title {
  margin-bottom: 0.5em;
  opacity: 0;
  -webkit-animation: inDown 0.25s forwards;
          animation: inDown 0.25s forwards;
  -webkit-animation-delay: 0.5s;
          animation-delay: 0.5s;
}
.container .scene {
  padding-top: 50%;
  position: relative;
  -webkit-animation: inUp 0.25s;
          animation: inUp 0.25s;
}
.container .scene .info {
  position: absolute;
  z-index: 100;
  top: 0.5em;
  left: 0.5em;
  opacity: 0;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.container .scene:hover .info {
  opacity: 1;
}
.container .scene canvas {
  background: #333;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  image-renderi.........完整代码请登录后点击上方下载按钮下载查看

网友评论0