cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-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="contain">
  <svg class="grapes1" width="400px" viewBox="0 0 200 200">
  <style type="text/css">
    .st0{fill:#6D4838;}
    .st1{fill:#09594D;}
    .st2{fill:#2D704E;}
    .st3{fill:#5D73D8;}
    .st4{fill:#3661BF;}
    .st5{fill:#778EE0;}
  </style>
  <g>
    <rect x="95.8" y="2.1" class="st0" width="8.5" height="32"/>
    <g>
      <path class="st1" d="M132.6,2.3c0,0-30.4-5.5-28.5,28.5L132.6,2.3z"/>
      <path class="st2" d="M132.6,2.3c0,0,5.5,30.4-28.5,28.5L132.6,2.3z"/>
    </g>
  </g>
  <circle class="st3 circ1" cx="64.3" cy="46.9" r="16.5"/>
  <circle class="st3 circ2" cx="100" cy="46.9" r="16.5"/>
  <circle class="st3 circ3" cx="135.7" cy="46.9" r="16.5"/>
  <circle class="st4 circ4" cx="100" cy="181.5" r="16.5"/>
  <circle class="st4 circ5" cx="46.5" cy="80.3" r="16.5"/>
  <circle class="st4 circ6" cx="82.1" cy="80.3" r="16.5"/>
  <circle class="st5 circ7" cx="117.8" cy="80.3" r="16.5"/>
  <circle class="st5 circ8" cx="153.5" cy="80.3" r="16.5"/>
  <circle class="st3 circ9" cx="64.3" cy="114" r="16.5"/>
  <circle class="st4 circ10" cx="100" cy="114" r="16.5"/>
  <circle class="st4 circ11" cx="135.7" cy="114" r="16.5"/>
  <circle class="st5 circ12" cx="117.8" cy="148.5" r="16.5"/>
  <circle class="st5 circ13" cx="82.2" cy="148.5" r="16.5"/>
  </svg>
  <svg class="grapes2" width="400px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve">
    <style type="text/css">
      .st0{fill:#6D4838;}
      .st1{fill:#09594D;}
      .st2{fill:#2D704E;}
      .st3{fill:#5D73D8;}
      .st4{fill:#3661BF;}
      .st5{fill:#778EE0;}
    </style>
    <g>
      <rect x="95.8" y="2.1" class="st0" width="8.5" height="52.1"/>
      <g>
        <path class="st1" d="M132.6,2.3c0,0-30.4-5.5-28.5,28.5L132.6,2.3z"/>
        <path class="st2" d="M132.6,2.3c0,0,5.5,30.4-28.5,28.5L132.6,2.3z"/>
      </g>
    </g>
    <circle class="st3 circ1" cx="64.3" cy="46.9" r="16.5"/>
    <circle class="st3 circ2" cx="100" cy="46.9" r="16.5"/>
    <circle class="st3 circ3" cx="135.7" cy="46.9" r="16.5"/>
    <circle class="st4 circ4" cx="100" cy="181.5" r="16.5"/>
    <circle class="st4 circ5" cx="46.5" cy="80.3" r="16.5"/>
    <circle class="st4 circ6" cx="82.1" cy="80.3" r="16.5"/>
    <circle class="st5 circ7" cx="117.8" cy="80.3" r="16.5"/>
    <circle class="st5 circ8" cx="153.5" cy="80.3" r="16.5"/>
    <circle class="st3 circ9" cx="64.3" cy="114" r="16.5"/>
    <circle class="st4 circ10" cx="100" cy="114" r="16.5"/>
    <circle class="st4 circ11" cx="135.7" cy="114" r="16.5"/>
    <circle class="st5 circ12" cx="117.8" cy="148.5" r="16.5"/>
    <circle class="st5 circ13" cx="82.2" cy="148.5" r="16.5"/>
  </svg>
</div>

            
          
!
            
              $animation1: back 1s infinite;
$animation2: color 1200ms infinite;

.contain {
  margin: 50px auto;
  width: 350px;
  display: flex;
}

.grapes1 .circ1 {
  transform: translateY(50px);
  animation: back 1s infinite;
}

.grapes1 .circ2 {
  transform: translateY(30px);
  animation: $animation1;
}

.grapes1 .circ3 {
  transform: translateY(20px) translateX(-40px);
  animation: $animation1;
}

.grapes1 .circ4 {
  transform: translateX(-20px) translateY(-60px);
  animation: $animation1;
}

.grapes1 .circ5 {
  transform: translateX(50px) translateY(10px);
  animation: $animation1;
}

.grapes1 .circ6 {
  transform: translateX(40px) translateY(60px);
  animation: $animation1;
}

.grapes1 .circ7 {
  transform: translateX(10px) translateY(40px);
  animation: $animation1;
}

.grapes1 .circ8 {
  transform: translateX(-30px) translateY(50px);
  animation: $animation1;
}

.grapes1 .circ9 {
  transform: translateX(50px) translateY(40px);
  animation: $animation1;
}

.grapes1 .circ10 {
  transform: translateX(-20px) translateY(20px);
  animation: $animation1;
}

.grapes1 .circ11 {
  transform: translateX(-20px) translateY(-40px);
  animation: $animation1;
}

.grapes1 .circ12 {
  transform: translateX(-40px) translateY(-60px);
  animation: $animation1;
}

.grapes1 .circ13 {
  transform: translateX(40px) translateY(-80px);
  animation: $animation1;
}

.grapes2 .circ1 {
  animation: $animation2;
}

.grapes2 .circ2 {
  animation: $animation2;
  animation-delay: 100ms;
}

.grapes2 .circ3 {
  animation: $animation2;
  animation-delay: 200ms;
}

.grapes2 .circ4 {
  animation: $animation2;
  animation-delay: 1100ms;
}

.grapes2 .circ5 {
  animation: $animation2;
  animation-delay: 300ms;
}

.grapes2 .circ6 {
  animation: $animation2;
  animation-delay: 400ms;
}

.grapes2 .circ7 {
  animation: $animation2;
  animation-delay: 500ms;
}

.grapes2 .circ8 {
  animation: $animation2;
  animation-delay: 600ms;
}

.grapes2 .circ9 {
  animation: $animation2;
  animation-delay: 600ms;
}

.grapes2 .circ10 {
  animation: $animation2;
  animation-delay: 700ms;
}

.grapes2 .circ11 {
  animation: $animation2;
  animation-delay: 800ms;
}

.grapes2 .circ12 {
  animation: $animation2;
  animation-delay: 1000ms;
}

.grapes2 .circ13 {
  animation: $animation2;
  animation-delay: 900ms;
}

@keyframes back {
  45% {
    transform: translateY(0);
    fill: #6252BA;
    stroke-width: 4px;
    stroke-dasharray: 8px;
    stroke-linecap: round;
    stroke: #0D4AB5;
  }
  55% {
    transform: translateY(0);
    fill: #6252BA;
    stroke-width: 2px;
    stroke-dasharray: 4px;
    stroke-linecap: round;
    stroke: #3826A3;
  }
}

@keyframes color {
  to {
    fill: purple;
  }
}
            
          
!
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