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 Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

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.

            
              <svg viewBox="0 0 164.59 163.05">
  <defs>
    <style>.cls-1{fill:#86d0c8;}.cls-2{fill:#5cc4b9;}.cls-3{fill:#787678;}.cls-4{fill:#e6e7e8;}.cls-4,.cls-7{stroke:#787678;}.cls-11,.cls-4,.cls-5{stroke-miterlimit:10;}.cls-11,.cls-4,.cls-7{stroke-width:3px;}.cls-11,.cls-5{fill:none;}.cls-5{stroke:#fff;}.cls-5,.cls-7{stroke-linecap:round;}.cls-6{fill:#5dc4b9;}.cls-7,.cls-9{fill:#f8f9fb;}.cls-7{stroke-linejoin:round;}.cls-8{fill:#152935;}.cls-10{fill:#db2780;}.cls-11{stroke:#db2780;}
    </style>
  </defs>
  <g id="bg">
    <circle cx="83.72" cy="84.54" r="78.51" class="cls-1"/><path d="M139.24 140.05a78.51 78.51 0 0 0 0-111l-111 111a78.51 78.51 0 0 0 111 0z" class="cls-2"/>
  </g>
  <ellipse id="ghost__shadow" cx="102.02" cy="150.8" class="cls-3" rx="55" ry="2.5"/>
  <g id="magnifyingglass">
    <path id="handle" d="M21.447 47.26l4.203-4.282L43.805 60.8l-4.203 4.28z" class="cls-4"/>
    <circle id="glass" cx="410.2" cy="633.21" r="14.5" class="cls-4" transform="rotate(-56 -348.392 705.343)"/>
    <path id="light" d="M26.19 36.13a10.39 10.39 0 1 1-19.87-3.89m2.48-3.42a10.41 10.41 0 0 1 7.58-2.7" class="cls-5"/>
    <g id="info_dots">
      <circle cx="405.95" cy="636.96" r="1.35" class="cls-6" transform="rotate(-6.12 -5375.453 4025.697)"/>
      <circle cx="410.2" cy="633.2" r="1.35" class="cls-6" transform="rotate(-6.12 -5371.217 4021.89)"/>
      <circle cx="414.45" cy="629.47" r="1.35" class="cls-6" transform="rotate(-6.12 -5366.985 4018.176)"/>
    </g>
  </g>
  <g id="ghost">
    <path id="ghost__body" d="M104.11 1.5h-6.84c-22.55.76-40.81 20.24-40.81 45v19.59l-7.45-7.45a7.11 7.11 0 0 0-10 0l-.63.63a7.11 7.11 0 0 0 0 10s13.31 13.16 17.11 16.66a2.37 2.37 0 0 1 .74 2.13 99.78 99.78 0 0 0-1 20.86c.62 11.68 6.19 28.63 6.19 28.63l5.8-6.91a5.58 5.58 0 0 1 6.67 0l4.31 3.45a5.6 5.6 0 0 0 6.67 0l4.08-3.27a5.6 5.6 0 0 1 6.67 0l4.31 3.45a5.6 5.6 0 0 0 6.67 0l4.7-3.76a5.6 5.6 0 0 1 6.67 0l4.7 3.76a5.6 5.6 0 0 0 6.67 0l4.51-3.61a5.58 5.58 0 0 1 6.67 0l7.15 3.76s-7.33-17.67-8-32.5c-.6-13.24 5.75-40.58 5.19-56.18-.83-24.38-18.47-43.14-40.75-44.24z" class="cls-7"/>
    <g id="ghost__eyes">
      <g id="eye--left"><circle id="eyebg--left" cx="84.38" cy="38.82" r="4.74" class="cls-8"/><circle id="pupil--left" cx="83.05" cy="38.82" r="1.17" class="cls-9"/></g>
      <g id="eye--right"><circle id="eyebg--right" cx="108.08" cy="38.82" r="4.74" class="cls-8"/><circle id="pupil--right" cx="106.41" cy="38.82" r="1.17" class="cls-9"/></g>
    </g>
    <g id="ghost__mouth">
      <path id="mouth__bg" d="M85.09 51.26a11.15 11.15 0 0 0 22.29 0H85.09z" class="cls-8"/>
      <ellipse id="tongue" cx="96.23" cy="57.85" class="cls-10" rx="6.37" ry="2.78"/>
    </g>
  </g>
  <g id="sparkles">
    <path d="M3.68 56.07l12.65 12.66m0-12.66L3.68 68.73m13.38 4.52h10.49M22.3 68v10.5m126-64.75l15.22 15.31m0-15.31L148.3 29.06" class="cls-11 sparkles"/>
    <circle cx="13.14" cy="127.53" r="9" class="cls-11 sparkles"/>
    <circle cx="146.3" cy="38.64" r="4.11" class="cls-11 sparkles"/>
    <circle cx="137.78" cy="23.19" r="6.57" class="cls-11 sparkles"/>
  </g>
</svg>
            
          
!
            
              /*math sparkles animation and keyframe*/
.sparkles {
  animation: sparkle 1.2s ease-in-out;
  opacity: 0;
  transform: scale(0.8);
  transform-origin: center;
}

@keyframes sparkle {
  50% {opacity: 1; stroke: #5cc4b9; transform: scale(1);}
  100% {opacity: 0; stroke: #db2780; transform: scale(0.8);}
}


/*hide bg & animate in*/
#bg {
  animation: bgshow 2s ease forwards;
  animation-delay: .2s; 
  opacity: 0;
}

@keyframes bgshow {
  100% {opacity: 1;}
}

/*position ghost, shadow & glass out of view, change opacity, then animate into frame and opacity 1*/
#ghost__shadow, #magnifyingglass, #ghost {
  animation: ghostshow .5s cubic-bezier(.67, .29, .73, .48) forwards;
  animation-delay: .7s;
  opacity: 0;
  transform: translateX(11rem);
}

@keyframes ghostshow {
  100% {opacity: 1; transform: translateX(0);}
}

/*general svg styles*/
svg {
  display: block;
  margin: 6rem auto 0 auto;
  width: 11.25rem;
}
            
          
!
999px
Loading ..................

Console