噪点画布绘制艺术作品动画效果

代码语言:html

所属分类:粒子

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

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

<style>
body {
  display: grid;
  place-items: center;
  height: 100vh;
  background: #F5F7FA;
}
body #box {
  position: relative;
  width: 75vmin;
  height: 75vmin;
  border: .5rem solid #323133;
  background: white;
}
body #box .container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}
body #box .blob {
  --size:3rem;
  position: absolute;
  background: grey;
  border-radius: 100%;
  width: var(--size);
  height: var(--size);
  animation: blob 1s cubic-bezier(0.07, 0.01, 0, 1) forwards;
}
@keyframes blob .........完整代码请登录后点击上方下载按钮下载查看

网友评论0