div+css实现日出动画效果代码

代码语言:html

所属分类:动画

代码描述:div+css实现日出动画效果代码

代码标签: 动画 效果

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


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

<head>

 
<meta charset="UTF-8">

 
 
 
 
<style>
*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: flex;
  background-color: #12355B;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.container { /*change the size of landscape here */
  overflow: hidden;
  background: #1488CC;  /* fallback for old browsers */
background: -webkit-linear-gradient(to bottom, #2B32B2, #1488CC);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to bottom, #2B32B2, #1488CC); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  width: 500px;
  height: 300px;
  position: relative;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(0,0,0,.1), 0 10px 10px rgba(0,0,0,.1);
}

/* add moon and outer moon rings here */

.disc1 {
  position: absolute;
  top: 350px;
  left: 125px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background-color: #DDE4F8;
  animation: moon3 1.8s 1 1.2s forwards;
}

.disc2 {
  position: absolute;
  top: 700px;
  left: 155px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: #BBCAF1;
  animation: moon2 2s 1 1s forwards;
}

.disc3 {
  position: absolute;
  top: 950px;
  left: 175px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #99B0EA;
  animation:.........完整代码请登录后点击上方下载按钮下载查看

网友评论0