canvas点击放花动画效果

代码语言:html

所属分类:动画

代码描述:canvas点击放花动画效果

代码标签: 动画 效果

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

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

<head>

  <meta charset="UTF-8">


  
  
<style>
html {
  height: 100%;
}

body {
  height: 100%;
  position: relative;
  background-color: black;
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: center;
          justify-content: center;
}

canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.instruction {
  position: fixed;
  bottom: 20px;
  color: white;
  border-radius: 20px;
  padding: 14px 24px;
  background-color: rgba(51, 51, 51, 0.3);
  box-shadow: 0 1px 4px 0 rgba(21, 28, 37, 0.08);
}
</style>


</head>

<body translate="no" >
  <canvas><.........完整代码请登录后点击上方下载按钮下载查看

网友评论0