div+css实现圣诞节快乐动画效果代码

代码语言:html

所属分类:动画

代码描述:div+css实现圣诞节快乐动画效果代码

代码标签: div css 圣诞节 快乐 动画

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

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

<head>
  <meta charset="UTF-8">
  

  <meta name="viewport" content="width=device-width, initial-scale=1">
 
  
  
<style>
@-webkit-keyframes fall {
  to {
    transform: translateY(300px);
  }
}

@keyframes fall {
  to {
    transform: translateY(300px);
  }
}

body {
  background-color: #f1faee;
  justify-content: center;
  align-items: center;
  height: 100svh;
  display: flex;
}
.snowball {
  position: relative;
  top: 0;
  left: 0;
}
.ball {
  background-color: #bde0fe;
  border: 8px solid #003049;
  border-radius: 50%;
  width: 300px;
  height: 300px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 10px 10px #fff;
}
.holder {
  background-color: #2a9d8f;
  border: 8px solid #003049;
  border-radius: 20px 20px 0 0;
  width: 250px;
  height: 55px;
  position: absolute;
  top: 308px;
  left: 25px;
}
.holder:before {
  content: "";
  background-color: #003049;
  width: 500px;
  height: 8px;
  position: absolute;
  top: 55px;
  left: -130px;
}
.tree {
  background-color: #003049;
  width: 8px;
  height: 40px;
  position: absolute;
  top: 270px;
  left: 145px;
}
.tree:before {
  content: "";
  border-bottom: 120px solid #003049;
  border-left: 75px solid #0000;
  border-right: 75px solid #0000;
  width: 0;
  height: 0;
  position: absolute;
  top: -120px;
  left: -70px;
}
.tree:after {
  content: "";
  border-bottom: 95px solid #386641;
  border-le.........完整代码请登录后点击上方下载按钮下载查看

网友评论0