#canvas {
width:100%;
height:100%;
}
html {
height:100%;
}
body {
height:100%;
position:relative;
}
h1 {
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
margin:auto;
text-align:center;
line-height:200px;
font-size:100px;
color:red;
animation:blink 1s infinite linear;
}
@keyframes blink {
0% {
color:red;
opacity:1;
}
50% {
color:firebrick;
opacity:.5;
}
50% {
color:deeppink;
opacity:.5;
}
100% {
color:red;
opacity:0;
}
}更新时间:2021-01-17 22:07:35
run函数是为了动态显示标题
scene 由面向对象思想编写
scene 场景 对象 控制canvas内容 * 多个fireworks 状态位置 进程 * 整体更新 *
particle 粒子 大小 颜色 速度 加速度。。。 *
fireworks 烟花