单个div+css实现蜜蜂效果代码

代码语言:html

所属分类:布局界面

代码描述:单个div+css实现蜜蜂效果代码

代码标签: 单个 div css 蜜蜂

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">




    <style>
        body {
          min-height: 300px;
          height: 100vh;
          position: relative;
          background-color: #9932cc;
          z-index: 0;
        }
        div {
          position: absolute;
          left: 50%;
          top: 50%;
        }
        div::before,
        div::after {
          display: block;
          content: '';
          position: absolute;
        }
        #stripes {
          width: 200px;
          height: 250px;
          margin-left: -115px;
          margin-top: -135px;
          background: radial-gradient(circle, #ffd700 15%, rgba(255,215,0,0) 55.5%) 60% 43%/3em 3em, radial-gradient(ellipse at 50% 0, rgba(255,255,255,0.3) 55%, rgba(255,255,255,0.6) 55.5%, rgba(255,255,255,0.6) 59%, rgba(255,255,255,0) 59.5%) 0 50%/125px 35px, radial-gradient(circle, #ffd700 30%, rgba(255,215,0,0) 45.5%) 60% 48%/5em 5em, linear-gradient(45deg, rgba(34,34,34,0) 40%, #222 41%, #222 60%, rgba(34,34,34,0) 61%) 70% 55%/1.5em 1.5em, radial-gradient(ellipse at 80% 100%, #222 50%, rgba(34,34,34,0) 51%) 88% 58%/3em 0.5em, radial-gradient(ellipse at 0 50%, #222 50%, rgba(34,34,34,0) 51%) 94.5% 64.5%/0.5em 2em, linear-gradient(45deg, rgba(34,34,34,0) 40%, #222 41%, #222 60%, rgba(34,34,34,0) 61%) 63% 60%/1.5em 1.5em, radial-gradient(ellipse at 80% 100%, #222 60%, rgba(34,34,34,0) 61%) 81% 62.6%/2.5em 0.5em, radial-gradient(ellipse at 0 50%, #222 50%, rgba(34,34,34,0) 51%) 88% 69.5%/0.5em 2em, radial-gradient(circle, #ffd700 40%, rgba(255,215,0,0) 60.5%) 60% 48%/5em 5em, radial-gradient(ellipse at 100% 50%, rgba(255,255,255,0.3) 55%, rgba(255,255,255,0.6) 55.5%, rgba(255,255,255,0.6) 59%, rgba(255,255,255,0) 59.5%) 50% 0/35px 125px, linear-gradient(140deg, #222 88%, rgba(34,34,34,0) 88.5%) 94% 35%/2em 0.25em, linear-gradient(-82deg, #222 50%, rgba(34,34,34,0) 52%) 94.5% 40%/0.4.........完整代码请登录后点击上方下载按钮下载查看

网友评论0