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.

            
              <div class="container">
  <div class="deco-wrapper">
     <div class="arrow"></div>
  </div>
 

  <h1>SVG Animation</h1>
  <svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	 width="363.877px" height="73.479px" viewBox="0 0 363.877 73.479" enable-background="new 0 0 363.877 73.479"
	 xml:space="preserve">
<path id="test" fill="none" stroke="#ccf" stroke-miterlimit="10" d="M42.959,17.38c7.732-8.435,21.29,1.472,30.411,1.595
	c18.625,0.25,6.929-13.73-6.115-5.175C56.89,20.598,15.548,82.074,2.367,71.577C-7.728,63.538,41.822,49.796,44.55,48.878
	c3.307-1.113,43.102-14.63,29.743-20.28c-12.879,3.725-2.373,21.515-4.667,30.116c-3.911,13.688-11.711,3.067-7.042-0.445
	c24.679-18.563,51.301-28.6,66.497-57.607c-1.04,6.44-38.325,62.867-29.488,64.718c6-14.667,12.033-22,14.033-38.667
	c-6.666,0-8.666,11.333-4,16c-0.444-0.223-0.888-0.445-1.332-0.668c18.666,5.334,63.313-22.45,57.725,3.935
	c3.246-22.451-31.436-10.966-37.737,8.097c-3.571,10.803,7.745,15.037,16.107,11.558c11.245-4.678,21.296-18.337,29.321-27.255
	c-2.391,1.912-24.386,23.382-19.561,26.646c11.055,7.479,31.661-22.19,37.322-28.258c-9.516,10.199-13.178,18.613-23.846,29.947
	c13.904-10.244,25.017-30.566,43.643-32.802c13.248-1.472,3.576,9.522-0.21,14.651c-4.225,5.723-9.996,19.458,3.978,15.868
	c15.042-3.865,28.644-19.104,39.257-29.718c4.454-3.897,21.576-23.816,17.375-30.24c-3.786-5.791-26.061,24.218-27.877,27.086
	c-4.073,6.433-16.022,27.193-7.96,34.028c17.091,14.489,33.359-31.63,22.378-25.815c-9.508,5.033,12.744,9.174,15.146,6.867
	c2.726-2.617,6.568-9.649,8.819-12.895c-6.201,8.94-17.758,31.635-8.756,29.929c16.762,1.706,31.916-17.044,40.663-29.489
	c-5.497,6.445-21.747,30.445-13.997,31.82c20.75,3.625,72.318-51.757,61.285-59.821c-11.448-8.367-32.989,34.342-36.929,41.858
	c-17.322,33.047,29.683,10.649,29.683,4.146"/>
</svg>
  <svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	 width="77.602px" height="38.784px" viewBox="0 0 77.602 38.784" enable-background="new 0 0 77.602 38.784" xml:space="preserve">
<path id="test2" fill="none" stroke="#0000CC" stroke-miterlimit="10" d="M6.315,11.157c3.073,3.541,12.48-0.097,15.681-1.693
	c2.272-1.133,11.398-10.65,4.576-8.702c-3.709,1.06-7.71,5.631-10.497,8.111c-3.299,2.938-6.715,6.027-9.127,9.768
	c-1.478,2.292-2.488,8.498-5.912,8.613c-0.354-4.184-1.857-9.267,2.526-11.774c3.652-2.088,5.001-0.148,5.734,3.58
	c0.526,2.676-0.777,7.382,3.079,7.815c4.986,0.559,9.628-7.033,11.772-10.599c0.473,4.985-2.989,11.914,3.009,14.287
	c6.83,2.702,20.706,0.763,22.208-7.999c-2.481,2.686-8.691,9.352-4.144,12.127c3.452,2.107,23.636-0.592,21.652-5.864
	c-3.372-0.392-6.711,6.04-4.382,8.489c2.505,2.633,12.322-0.792,14.864-2.238"/>
</svg>
</div>
            
          
!
            
              body {
  background: black;
}

path#test{
  stroke-dasharray: 1516.4029541015625;
  stroke-dashoffset: 1516.4029541015625;
  animation: dash 5s ease-in-out alternate infinite;
}
//224.00408935546875

path#test2{
  stroke-dasharray: 224.00408935546875;
  stroke-dashoffset: 224.00408935546875;
  animation: writingfade 5s ease-in-out normal infinite; //animation-iteration-count: number|infinite|initial|inherit;
  opacity: 1;
}
@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes writingfade {
  to {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

body {
  height: 100vh;
}

.container {
  display: block;
  text-align: center;
  color: #ebffff;
  font-weight: normal;
  width: 70%;
  height: auto;
  //height: 100vh;
  border-radius: .5rem;
  padding: .5rem;
  margin: 2rem auto;
  background: radial-gradient(220% 105% at top center, #1b2947 10%, #75517d 40%, #e96f92 65%, #f7f7b6);
}
.deco-wrapper{
  display: block;
  margin: 0 auto;
  position: relative;
  top: -0.5rem;
  border-top: 0.1rem solid rgba(255,255,255,0.5);
  
}
.arrow{
  margin: auto;
  top: 0;
    width:0;
    height:0;
    border-top:20px solid rgba(255,255,255,0.5);
    border-right:20px solid transparent;
    border-bottom:20px solid transparent;
    border-left:20px solid transparent;
}


svg {
    position: relative;
    display: block;
    border: 1px dashed #38f;
    border-width: 1px 0;
    margin: 0 auto;
    padding: 2%;
    width: 90%;
}
            
          
!
999px
Loading ..................

Console