simplex-noise实现多彩方块泡泡变形动画效果代码

代码语言:html

所属分类:动画

代码描述:simplex-noise实现多彩方块泡泡变形动画效果代码

代码标签: simplex-noise 彩色 泡泡

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


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

<head>

  <meta charset="UTF-8">

  
  
  
  
<style>
*, *::before, *::after {
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
}

body {
  background-color: #000;
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(9, 48px);
  grid-gap: 2px;
}

.sqr {
  position: relative;
  width: 48px;
  height: 48px;
  border: 2px solid hsl(var(--hue, 0), 100%, 80%);
  border-radius: var(--br-tl, 0) var(--br-tr, 0) var(--br-br, 0) var(--br-bl, 0);
  filter: hue-rotate(var(--hr, 0deg));
  transition: filter 1s;
  box-shadow: 0 0 4px hsl(var(--hue, 0), 100%, 60%), 0 0 8px hsl(var(--hue, 0), 100%, 60%) inset, 0 0 12px hsl(var(--hue, 0), 100%, 40%), 0 0 16px hsl(var(--hue, 0), 100%, 40%) inset, 0 0 20px hsl(var(--hue, 0), 100%, 20%), 0 0 24px hsl(var(--hue, 0), 100%, 20%) inset;
}
.sqr::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 36px;
  height: 36px;
  border-radius: inherit;
  border: solid hsl(var(--hue, 0), 100%, 40%);
  border-width: 0 0 2px 2px;
}
</style>


</head>

<body  >
  <div class="grid">
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <div class="sqr"></div>
  <.........完整代码请登录后点击上方下载按钮下载查看

网友评论0