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;
  to.........完整代码请登录后点击上方下载按钮下载查看

网友评论0