DEV Community

Sekti Wicaksono
Sekti Wicaksono

Posted on

CSS Battle - #11 Eye of Sauron

HTML

<div class="sm-circle-1"></div>
<div class="bg-circle"></div>
<div class="sm-circle-2"></div>
Enter fullscreen mode Exit fullscreen mode

CSS

  body {
    background: #191210;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .sm-circle-1 {
    height: 50px;
    width: 100px;
    background: #ECA03D;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    position: absolute;
    bottom: 92px;
    left: 41px;
  }

  .sm-circle-1:before {
    content: '';
    height: 30px;
    width: 60px;
    background: #191210;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    position: absolute;
    bottom: 20px;
    left: 21px;
  }

  .sm-circle-2 {
    height: 50px;
    width: 100px;
    background: #ECA03D;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    position: absolute;
    bottom: 142px;
    left: 243px;
    transform: rotate(180deg);
  }

  .sm-circle-2:before {
    content: '';
    height: 30px;
    width: 60px;
    background: #191210;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    position: absolute;
    bottom: 20px;
    left: 21px;
  }

  .bg-circle {
    width: 140px;
    height: 140px;
    background: #ECA03D;
    border-radius: 50%;
    position: relative;
  }

  .bg-circle:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100px;
    height: 100px;
    background: #191210;
    border-radius: inherit;
  }

  .bg-circle:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 50px;
    height: 50px;
    background: #84271C;
    border-radius: inherit;
  }
Enter fullscreen mode Exit fullscreen mode

Top comments (0)