css实现飞舞的绒毛动画效果

代码语言:html

所属分类:动画

代码描述:css实现飞舞的绒毛动画效果

代码标签: 绒毛 动画 效果

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

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

<style>
body {
  background: linear-gradient(5deg, #cab1bd, #e7cfcd);
  background-size: 400% 400%;
  animation: GradientBackground 10s ease infinite;
  margin: 0;
  padding: 0;
}

.fluff {
  position:absolute;
  z-index:20;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: white;
  -webkit-box-shadow: 0px 0px 20px 10px #ffffff;
  box-shadow: 0px 0px 20px 10px #ffffff;
}

[class="fluff 1"] {
  motion-path: path("M0 344s286-182 513 0 854-40 854-40");
  offset-path: path("M0 344s286-182 513 0 854-40 854-40");
  ani.........完整代码请登录后点击上方下载按钮下载查看

网友评论0