css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              svg(xmlns='http://www.w3.org/2000/svg' viewbox='0 0 97.841 96.758' height='100vh' width='104.364' class="https://codepen.io/Bamblehorse/pen/ZoxyGj")
  defs
     radialGradient#gradient
        stop(offset="0%" stop-color="skyblue")
        stop(offset="100%" stop-color="midnightblue")
  path#star(transform='matrix(.10804 0 0 .10724 15.891 -10.548)' d='M617.143 866.648l-97.58-85.777L448.7 970.365 398 850.745l-146.065 139.98 6.223-129.771-192.336 62.742 61.913-114.22-200.512-26.921 105.34-76.046-168.974-111.255 127.903-22.809-103.968-173.552 125.132 34.944-18.37-201.475 97.579 85.777 70.865-189.494 50.698 119.62 146.066-139.98-6.223 129.771 192.335-62.742-61.912 114.22 200.511 26.922-105.34 76.045L747.84 503.756l-127.902 22.81 103.968 173.551-125.133-34.944z' fill='#fff' stroke='#000' stroke-width='18.581' stroke-opacity='.819')
  g(style="line-height:51.99999809%;-inkscape-font-specification:'Fira Mono, Medium';text-align:start" font-weight='500' font-size='23.331' font-family='Fira Mono' letter-spacing='0' word-spacing='0')
    path#kapow(d='M23.625 58.31V36.394h-1.988v21.914h1.988zm.085-11.72l4.234 11.72h2.382L25.87 46.366 30 36.395h-2.193L23.71 46.59zM37.62 53.037l.823 5.272h2.108l-3.77-21.914h-2.469l-3.77 21.914h2.04l.822-5.272h4.216zm-3.805-2.858l1.697-10.926L37.21 50.18h-3.394zM50.347 43.287c0-4.67-1.765-6.892-4.747-6.892h-3.274v21.914h1.971v-7.813h1.44c2.708 0 4.61-2.096 4.61-7.21zm-2.073 0c0 3.334-1.029 4.414-2.52 4.414h-1.457v-8.543h1.44c1.525 0 2.537 1.143 2.537 4.129zM60.59 47.352c0-6.892-1.526-11.402-4.49-11.402-2.966 0-4.491 4.669-4.491 11.434 0 6.892 1.525 11.338 4.49 11.338 2.965 0 4.49-4.605 4.49-11.37zm-2.04 0c0 5.653-.703 8.512-2.45 8.512-1.698 0-2.452-2.827-2.452-8.48 0-5.685.703-8.544 2.451-8.544 1.748 0 2.45 2.859 2.45 8.512zM71.483 36.395H69.7l-1.097 18.357-1.182-15.817h-2.04l-1.268 15.817-.925-18.357h-1.92l1.508 21.914h2.365l1.217-16.23 1.166 16.23h2.33l1.629-21.914zM77.68 36.395h-2.09l.24 14.355h1.627l.223-14.355zm-1.045 17.531c-.72 0-1.286 1.08-1.286 2.382 0 1.366.566 2.414 1.286 2.414.754 0 1.302-1.048 1.302-2.414 0-1.302-.548-2.382-1.302-2.382z' style="line-height:51.99999809%;-inkscape-font-specification:'Fira Mono, Medium';text-align:start")

            
          
!
            
              body
  display: flex
  background: radial-gradient(circle at center, deepskyblue, midnightblue)
  justify-content: center

svg
  width: 100vmin
  animation: spin 2s infinite alternate
#kapow
  stroke-width: 0.5px
  stroke: white
  fill: none
  stroke-dasharray: 156
  stroke-dashoffset: 156
  animation: dash 1s cubic-bezier(0.72, 1.32, 0.26, 0.79) infinite alternate
  
#star
  stroke-width: 15px
  stroke: white
  opacity: 0.8
  fill: url("#gradient")
  stroke-dasharray: 500 400
  stroke-linecap: round
  stroke-dashoffset: 4700
  animation: dash 4s linear infinite alternate

@keyframes dash
  100%
    stroke-dashoffset: 0
  
@keyframes spin
  0%
    transform: scale(0) rotate(0)
  50%
    transform: scale(1) rotate(720deg)
  100%
    transform: scale(1) rotate(720deg)
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console