anime实现点击蜂窝蜜蜂飞出动画效果代码

代码语言:html

所属分类:动画

代码描述:anime实现点击蜂窝蜜蜂飞出动画效果代码

代码标签: 蜂窝 蜜蜂 飞出 动画 效果

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


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

<head>

 
<meta charset="UTF-8">


 
 
<style>
*,
*:before,
*:after {
  box-sizing: border-box;
}
body {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fde68a;
  overflow: hidden;
  user-select: none;
  cursor: grab;
}
#hive {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transform-origin: 50% 0;
}
#stalk {
  width: 8px;
  height: 50px;
  border-radius: 4px 4px 0 0;
  background: #714b55;
  pointer-events: auto;
  z-index: 6;
}
#layers {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
#layer {
  margin: -4px 0;
  background: #f7b030;
  pointer-events: auto;
}
#layer:nth-child(odd) {
  background: #e09f2c;
}
#layer:nth-child(1) {
  width: 100px;
  height: 30px;
  border-radius: 28px 28px 16px 16px;
  z-index: 5;
}
#layer:nth-child(2) {
  width: 140px;
  height: 40px;
  border-radius: 2.........完整代码请登录后点击上方下载按钮下载查看

网友评论0