单个div+css实现一束花朵效果代码

代码语言:html

所属分类:布局界面

代码描述:单个div+css实现一束花朵效果代码

代码标签: 单个 div css 花朵

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">




    <style>
        body {
          min-height: 400px;
          height: 100vh;
          position: relative;
          background-color: #ffdab9;
          text-align: center;
        }
        div {
          position: absolute;
          left: 50%;
          top: 50%;
        }
        div:before,
        div:after {
          display: block;
          content: '';
          position: absolute;
        }
        @media (max-width: 400px) {
          div:not(.no-scale) {
            transform: scale(0.8);
          }
        }
        #dry {
          box-sizing: border-box;
          width: 300px;
          height: 320px;
          margin-left: -150px;
          margin-top: -160px;
          background: repeating-linear-gradient(to bottom, white, white 10%, #d2691e 10%, #d2691e 20%) 48.5% 71%/1em 1em, linear-gradient(to right, rgba(210,105,30,0.2) 60%, rgba(210,105,30,0)) 50% 71%/1em 1em, linear-gradient(120deg, rgba(205,133,63,0) 10%, #cd853f 11%, #cd853f 89%, rgba(205,133,63,0) 90%) 50% 100%/0.2em 100%, linear-gradient(70deg, rgba(210,105,30,0) 10%, #d2691e 11%, #d2691e 89%, rgba(210,105,30,0) 90%) 48% 110%/0.2em 86%, linear-gradient(80deg, rgba(205,133,63,0) 45%, #cd853f 45.5%, #cd853f 48%, rgba(205,133,63,0) 48.5%) 48% 90%/4em 60%, linear-gradient(96deg, rgba(205,133,63,0) 45%, #cd853f 45.5%, #cd853f 48%, rgba(205,133,63,0) 48.5%) 50% 70%/4em 70%, linear-gradient(104deg, rgba(210,105,30,0) 45%, #d2691e 45.5%, #d2691e 48%, rgba(210,105,30,0) 48.5%) 51% 90%/4em 70%, linear-gradient(90deg, rgba(210,105,30,0), rgba(210,105,30,0.2) 1%, rgba(210,105,30,0.2) 10%, rgba(210,105,30,0) 15%) 56% 50%/2em 80%, linear-gradient(90deg, rgba(210,105,30,0), rgba(210,105,30,0.2) 1%, rgba(210,105,30,0.2) 10%, rgba(210,105,30,0) 15%) 54% 81%/2em 72%, linear-gradient(80deg, rgba(210,105,30,0) 45%, rgba(210,105,30,0.2) 46%, rgba(210,105,30,0.2) 49%, rgba(210,105,30,0) 53%) 48% 90%/4em 60%, linear-gradient(96deg, rgba(210,105,30,0) 45%, rgba(210,105,30,0.25) 46%, rgba(210,105,30,0.25) 48%, rgba(210,105,30,0) 51%) 51% 70%/4em 70%, linear-gradient(104deg, rgba(210,105,30,0) 45%, rgba(210,105,30,0.25) 46%, rgba(210,105,30,0.25) 46.5%, rgba(210,105,30,0) 50%) 52% 90%/4em 70%, radial-gradient(circle, #4682b4 50%, rgba(70,130,180,0) 51%) 66% 26%/1em 1em, radial-gradient(circle, #5f9ea0 50%, rgba(95,158,160,0) 51%) 70% 22%/1em 1em, radial-gradient(circle, #5f9ea0 50%, rgba(95,158,160,0) 51%) 70% 19%/0.5em 0.5em, radial-gradient(circle, #5f9ea0 50%, rgba(95,158,160,0) 51%) 75% 19%/1em 1em, radial-gradient(circle, #4682b4 50%, rgba(70,130,180,0) 51%) 72.5% 22%/0.5em 0.5em, radial-gradient(circle, #5f9ea0 50%, rgba(95,158,160,0) 51%) 74.5% 24%/1em 1em, radial-gradient(circle, #5f9ea0 50%, rgba(95,158,160,0) 51%) 70.5% 26%/1em 1em, radial-gradient(circle, #5f9ea0 50%, rgba(95,158,160,0) 51%) 77.5% 23%/0.5em 0.5em, radial-gradient(circle, #4682b4 50%, rgba(70,130,180,0) 51%) 74.5% 28%/1em 1em, radial-gradient(circle, #5f9ea0 50%, rgba(95,158,160,0) 51%) 70.5% 31%/1em 1em, radial-gradient(circle, rgba(210,105,30,0.2) 20%, rgba(210,105,30,0) 55%) 67% 27%/1em 1em, radial-gradient(circle, rgba(210,105,30,0.2) 20%, rgba(210,105,30,0) 55%) 71% 23%/1em 1em, radial-gradient(circle, rgba(210,105,30,0.2) 10%, rgba(210,105,30,0) 55%) 71% 20%/0.5em 0.5em, radial-gradient(circle, rgba(210,105,30,0.2) 20%, rgba(210,105,30,0) 55%) 76% 20%/1em 1em, radial-gradient(circle, rgba(210,105,30,0.2) 10%, rgba(210,105,30,0) 55%) 71.5% 23%/0.5em 0.5em, radial-gradient(circle, rgba(210,105,30,0.2) 20%, rgba(210,105,30,0) 55%) 75.5% 24%/1em 1em, radial-gradient(circle, rgba(210,105,30,0.2) 20%, rgba(210,105,30,0) 55%) 71.5% 27%/1em 1em, radial-gradient(circle, rgba(210,105,30,0.2) 10%, rgba(210,105,30,0) 55%) 78.5% 24%/0.5em 0.5em, radial-gradient(circle, rgba(210,105,30,0.2) 20%, rgba(210,105,30,0) 55%) 75.5% 29%/1em 1em, radial-gradient(circle, rgba(210,105,30,0.2) 20%, rgba(210,105,30,0) 55%) 71.5% 32%/1em 1em, linear-gradient(115deg, rgba(95,158,160,0) 45%, #5f9ea0 45.5%, #5f9ea0 46.5%, rgba(95,158,160,0) 47%) 54% 130%/6em 80%, linear-gradient(115deg, rgba(210,105,30,0) 45%, rgba(210,105,30,0.25) 46%, rgba(210,105,30,0.2) 46.5%, rgba(210,105,30,0) 49%) 54% 130%/6em 80%, radial-gradient(circle, #5f9ea0 50%, rgba(95,158,160,0) 51%) 23% 28%/1em 1em, radial-gradient(circle, #5f9ea0 50%, rgba(95,158,160,0) 51%) 26.5% 25%/1em 1em, radial-gradient(circle, #4682b4 50%, rgba(70,130,180,0) 51%) 31% 28%/1em 1em, radial-gradient(circle, #5f9ea0 50%, rgba(95,158,160,0) 51%) 24% 21%/1em 1em, radial-gradient(circle, #5f9ea0 50%, rgba(95,158,160,0) 51%) 27% 32%/1em 1em, radial-gradient(circle, #4682b4 50%, rgba(70,130,180,0) 51%) 23.5% 25%/0.5em 0.5em, radial-gradient(circle, #5f9ea0 50%, rgba(95,158,160,0) 51%) 28.5% 22%/0.5em 0.5em, radial-gradient(circle, #5f9ea0 50%, rgba(.........完整代码请登录后点击上方下载按钮下载查看

网友评论0