【赛博手工】没到家,闲来无事做了把弹弓

看到佬友整了把弹弓 到家了,闲来无事做了把弹弓 ,手痒痒,于是乎我也整了一个,赛博手工回来啦!

预览

代码

这次比较简单,就是重复的背景叠加。

老样子,仍旧是单标签画图。

<div></div>
   * {
      margin: 0;
      padding: 0;
    }

    body {
      height: 100vh;
      background: #ddd;
      display: grid;
      place-items: center;
    }

    div {
      width: 150px;
      height: 150px;
      border: 16px solid #a0522d;
      border-radius: 0 0 100px 100px;
      border-top: none;
      box-shadow:
        5px -5px 0 5px #c76739 inset,
        -5px -5px 0 5px #c76739 inset,
        0 8px 0 8px #824112;
      margin-top: -50px;
      position: relative;
      box-sizing: border-box;
    }

    div::before {
      content: '';
      position: absolute;
      width: 180px;
      height: 270px;
      left: 50%;
      margin-left: -90px;
      background-repeat: no-repeat;
      background-image:
        linear-gradient(to left,
          rgba(0, 0, 0, 0.2) 50%, transparent 50%),
        repeating-linear-gradient(to bottom,
          #cd853f, #cd853f 4px, #8b4513 4px, #8b4513 6px),
        linear-gradient(to right,
          rgba(0, 0, 0, 0.2) 50%, transparent 50%),
        repeating-linear-gradient(to bottom,
          #cd853f, #cd853f 4px, #8b4513 4px, #8b4513 6px), radial-gradient(ellipse at center top,
          transparent 46%, #cd853f 46%,
          #cd853f 48%, #ac6c2d 48%,
          #ac6c2d 50%, transparent 50%),
        linear-gradient(to right,
          #c76739 25%, #a0522d 25%,
          #a0522d 70%, #824112 70%),
        radial-gradient(circle,
          rgba(255, 255, 255, 0.2) 40%, transparent 40%),
        radial-gradient(circle, #999 40%, transparent 40%);
      background-size:
        40px 30px, 40px 30px,
        40px 30px, 40px 30px,
        210px 290px, 36px 108px,
        20px 20px, 50px 50px;
      background-position:
        right 4px top 30px, right 4px top 30px,
        left 4px top 30px, left 4px top 30px,
        center 50px, center bottom,
        right 18px bottom 18px, right bottom;
    }

    div::after {
      content: '';
      position: absolute;
      width: 80px;
      height: 40px;
      left: 50%;
      margin-left: -40px;
      top: 217px;
      background-color: #5e2f0d;
      background-image:
        linear-gradient(to bottom, #cd853f 50%, #ac6c2d 50%);
      background-repeat: no-repeat;
      background-size: 36px 8px;
      background-position: center top 16px;
      border-radius: 50px / 20px 20px 40px 40px;
    }

你也可以在 CODEPEN 预览。


应该可能大概或许是年内最后一水了,先祝佬友们新年快乐!


往期相关:

37 个赞

鹅已无敌 :tieba_087:

5 个赞

鹅已无敌 :tieba_087:

3 个赞

大鹅开个css系列教程吧,估计明年还能再水一年 :tieba_025:

3 个赞

大佬们只爱看我整花活 :tieba_087: 教程骗不到小心心tieba_034

2 个赞

好快的啵啵啵

3 个赞

Jay 已无敌!

2 个赞

我以为是真弹弓 :tieba_087:

2 个赞

前排智齿

2 个赞

这辈子的css都是鹅佬教的 :tieba_087:

2 个赞

太强了!

1 个赞

太强了,一看就是 masterpiece, 鬼斧神工 沉鱼落雁级别的

1 个赞

牛逼的佬友。

1 个赞

大佬又开始吹捧大鹅了

用这弹弓打你家玻璃~~

1 个赞

大鹅又发了,真是高产! :tieba_087:

1 个赞

鹅佬无敌了

1 个赞

大鹅新年快乐

1 个赞

鹅佬太强啦

1 个赞

大鹅老师好强啊,水起来都这么强!

1 个赞