css布局绘制一幅单色景观景色效果代码

代码语言:html

所属分类:布局界面

代码描述:css布局绘制一幅单色景观景色效果代码

代码标签: 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;
          background-color: #0A4B78;
          display: flex;
          justify-content: center;
          align-items: center;
        }
        
        .container {
          width: 367px;
          height: 500px;
          position: relative;
          background: linear-gradient(to bottom, #01263A 0%, #4F94D4 70%, #C5D9ED 100%);
          box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 10px 10px rgba(0, 0, 0, 0.3);
          border-radius: 80px;
          overflow: hidden;
        }
        
        .disc-1 {
          position: absolute;
          top: 24%;
          left: 1%;
          width: 359px;
          height: 358px;
          background: #72AEE6;
          opacity: 0.2;
          border-radius: 50%;
          -webkit-animation: glow infinite 2s;
                  animation: glow infinite 2s;
          -webkit-animation-fill-mode: both;
                  animation-fill-mode: both;
          -webkit-animation-direction: alternate;
                  animation-direction: alternate;
        }
        
        .disc-2 {
          position: absolute;
          top: 35%;
          left: 16%;
          width: 260px;
          height: 260px;
  .........完整代码请登录后点击上方下载按钮下载查看

网友评论0