cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div class="l-wrapper">
    <svg class="svg--parent">
     <defs>
      <clippath id="cp-def">
        <rect width="200" height="100" fill="green"></rect>
      </clippath>
         
      <symbol id="s-circles">
        <g class="g-circles">
          <circle r="90" cx="100" cy="100" clip-path="url(#cp-def)"></circle>
          <circle r="70" cx="100" cy="100"></circle>
          <circle r="50" cx="100" cy="100"></circle>
          <circle r="30" cx="100" cy="100"></circle>
          <circle r="10" cx="100" cy="100"></circle>
        </g>
      </symbol>
         
      <symbol id="s-circles-pair">
        <use xlink:href="#s-circles"></use>
        <use xlink:href="#s-circles" 
             transform="translate(180,0) rotate(180,100,99.6)"></use>
      </symbol>
         
      <symbol id="s-circles-group">
        <g>
          <use xlink:href="#s-circles-pair"></use>
          <use xlink:href="#s-circles-pair" 
               transform="translate(0,180)"></use>
        </g>
      </symbol>
         
      <pattern id="p-lines" 
               patternUnits="userSpaceOnUse"
               viewBox="0 0 509 509"
               width="200" height="200">
        <g transform="translate(-100,-100) rotate(-45, 350, 350)">
          <use xlink:href="#s-circles-group"></use>
          <use xlink:href="#s-circles-group" 
               transform="translate(0,360)"></use>
          <use xlink:href="#s-circles-group" 
               transform="translate(360,0)"></use>
          <use xlink:href="#s-circles-group" 
               transform="translate(360,360)"></use>
        </g>
      </pattern>
    </defs>
        
    <rect width="200%" height="200%" class="r-filled"></rect>
  </svg>
</div>
            
          
!
            
              @mixin posabs {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  }

BODY {
  background: #222;
  overflow: hidden;
  }

svg {
  overflow: visible;  
  }

.svg--parent {
  position: absolute;
  width: 100%;
  height: 100%;
  min-width: 510px;
  min-height: 510px;
  }

.l-wrapper {
  @include posabs;
  }

.r-bounds {
  fill: none;
  stroke-width: 1;
/*   stroke: red; */
  }


.r-filled {
  fill: url(#p-lines);
}

.g-pattern-shapes {
  fill: none;
}

$max: 5;
$color-step: 360/$max;

$colors: null, #E62738, #FF893B, #FFCA53, #FFE87A, #468071, teal;

.g-circles {
  fill: none;
  stroke-width: 10;
/*   stroke-dasharray: 3; */
  
  circle {
    @for $item from 0 through $max {
      &:nth-child(#{$max}n + #{$item}){
        $color: nth($colors,$item+1);
        stroke: $color;    
      }
    }
  }
}



            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console