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.

            
              <!--
Build Chrome with https://codereview.chromium.org/2720653002/ patched in to have offset-path animate smoothly instead of jumping at 50%.)
-->

  <svg width="400px" height="300px" version="1.1" xmlns="http://www.w3.org/2000/svg">
    <path class="wave"></path>
    <circle class="ball" r="20"></circle>
  </svg>


            
          
!
            
                  @keyframes drift {
      0% {
        offset-path: path('M 0,200 Q 40,220 100,100 Q 130,40 200,0 Q 100,170 400,200');
        offset-distance: 100%;
      }

      100% {
        offset-path: path('M 0,200 Q 200,200 260,80 Q 290,20 400,0 Q 300,100 400,200');
        offset-distance: 0%;
      }
    }
    .wave {
      stroke: blue;
      fill: none;
      animation: swell 6s forwards;
    }
    .ball {
      fill: yellow;
      animation: drift 6s forwards;
    }
    @keyframes swell {
      0% {
        d: path('M 0,200 Q 40,220 100,100 Q 130,40 200,0 Q 100,170 400,200');
      }

      100% {
        d: path('M 0,200 Q 200,200 260,80 Q 290,20 400,0 Q 300,100 400,200');
      }
    }

            
          
!
999px
Loading ..................

Console