Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="420px" height="344px" viewBox="0 0 420 344" enable-background="new 0 0 420 344" xml:space="preserve">
<path fill="#fff" id="bg" d="M341.613,81.125l-18.454-27.902c-1.642-2.483-4.421-3.976-7.397-3.976h-87.679h-87.679
	c-2.977,0-5.755,1.493-7.397,3.976l-18.455,27.902c-1.045,1.579-1.526,3.404-1.462,5.21h44.359h70.633h67.307h3.326l-70.633,94.301
	l-0.146-0.195l-29.445-39.52h29.591h7.886l27.779-37.088h-35.666h-86.006c-7.303,0-11.476,8.332-7.102,14.181l17.132,22.907
	l52.629,70.37l16.25,21.728c1.772,2.37,4.434,3.556,7.097,3.557c2.664,0.002,5.329-1.182,7.104-3.552l106.128-141.69
	c1.111-1.483,1.698-3.232,1.761-4.999C343.139,84.529,342.657,82.704,341.613,81.125z"/>
<path class="letter id="letter-1" fill="#fff" d="M155.408,306.749v-17.625c0,0,0.673-10.486-8.958-14.998
	c-17.082-7.114-32.785,4.643-32.785,4.643l6.244,10.168c10.342-6.494,18.218-4.931,18.218-4.931c3.103,0.617,3.713,3.708,3.782,5.65
	l0.006-0.004v1.614l-0.064-0.01c-16.32-1.067-23.947,5.102-26.348,9.042c-1.664,2.678-5.759,12.089,3.787,19.383
	c4.546,2.955,9.404,3.789,12.865,3.894c8.342,0.251,12.015-4.959,12.015-4.959c4.408,5.441,11.951,4.968,11.951,4.968l4.638-10.139
	C154.873,312.608,155.408,306.749,155.408,306.749z M135.895,312.423c-2.825,0.182-9.24-0.51-8.685-5.88
	c0,0,0.155-6.088,14.641-5.476v5.776C141.851,306.843,142.147,311.381,135.895,312.423z"/>
<polygon class="letter id="letter-2" fill="#fff" points="216.449,271.877 207.194,304.549 200.204,271.877 185.344,271.877 178.031,304.853 
	168.983,271.877 155.603,271.877 170.002,323.583 185.701,323.583 192.747,293.635 199.792,323.583 215.491,323.583 
	229.829,271.877 "/>
<path class="letter id="letter-3_1_" fill="#fff" d="M253.922,291.634c-4.493-0.356-7.09-0.951-8.588-1.672
	c-0.067-0.031-0.133-0.064-0.197-0.099c-0.028-0.014-0.054-0.029-0.081-0.044c-1.395-0.757-1.688-1.64-1.738-2.527
	c-0.029-0.183-0.044-0.371-0.044-0.562c0-1.41,0.819-2.629,2.007-3.207c0.029-0.014,0.06-0.028,0.089-0.041
	c1.146-0.651,2.924-1.036,5.678-0.571c7.191,1.214,10.286,5.322,10.286,5.322l8.206-8.919c-9.717-7.793-22.295-9.434-31.206-5.197
	c-1.294,0.468-9.125,4.832-8.573,15.186c0.628,10.965,12.415,13.695,16.653,13.854c2.835-0.029,6.441,0.986,8.326,2.651
	c0.011,0.01,0.021,0.02,0.032,0.029c0.033,0.029,0.065,0.058,0.097,0.089c0.017,0.016,0.033,0.032,0.05,0.048
	c0.003,0.003,0.007,0.007,0.01,0.01c0.589,0.591,0.953,1.406,0.953,2.306c0,0.647-0.189,1.25-0.513,1.757
	c-0.071,0.101-0.146,0.202-0.23,0.305c-0.039,0.047-0.079,0.092-0.119,0.137c-0.065,0.072-0.131,0.143-0.199,0.21
	c-4.769,4.262-15.737-1.186-18.995-5.163l-9.632,9.099c3.923,3.548,14.552,11.899,30.434,7.911
	c18.64-4.658,11.847-21.846,11.847-21.846S265.098,292.52,253.922,291.634z"/>
<path class="letter id="letter-4" fill="#fff" d="M323.605,271.91c-2.553-0.006-8.842-0.089-13.401,6.405c0,0-3.632-6.62-12.541-6.474
	c-6.938,0.382-11.59,4.563-11.59,4.563v-4.563h-13.38v50.703h13.38c0,0-0.019-28.598-0.012-29.027c0-0.005,0-0.01,0-0.015
	c0-0.007,0-0.012,0-0.018c0.01-4.195,3.412-7.594,7.61-7.594c4.204,0,7.612,3.408,7.612,7.612h0.003
	c-0.007,0.628-0.05,29.042-0.05,29.042h13.201c0,0-0.024-28.343,0.006-28.983c0.001-0.018,0.003-0.04,0.004-0.059
	c0.004-0.078,0.009-0.16,0.015-0.245c0.01-0.29,0.045-0.573,0.086-0.854c0.03-0.207,0.054-0.414,0.101-0.615
	c0.779-3.358,3.774-5.867,7.369-5.867c4.187,0,7.581,3.394,7.581,7.581h0.003c0.016,0.504-0.003,29.042-0.003,29.042h13.38v-28.877
	C342.977,290.869,342.982,273.485,323.605,271.91z"/>
<path class="fill" id="fill-1" fill="#fff" d="M228.082,86.335h67.307h3.326h44.359c0.065-1.806-0.417-3.631-1.461-5.21l-18.454-27.902
	c-1.642-2.483-4.421-3.976-7.397-3.976h-87.679h-87.679c-2.977,0-5.755,1.493-7.397,3.976l-18.455,27.902
	c-1.045,1.579-1.526,3.404-1.462,5.21h44.359H228.082z"/>
<polygon fill="none" points="298.715,86.335 227.936,180.441 228.082,180.636 "/>
<path class="fill" id="fill-2" fill="#fff" d="M298.715,86.335l-70.633,94.301l-0.146-0.195l-23.203,30.85l16.25,21.728
	c1.772,2.37,4.434,3.556,7.097,3.557c2.664,0.002,5.329-1.182,7.104-3.552l106.128-141.69c1.111-1.483,1.698-3.232,1.761-4.999
	H298.715z"/>
<path class="fill" id="fill-4" fill="#fff" d="M228.081,103.833h-86.006c-7.303,0-11.476,8.332-7.102,14.181l17.132,22.907h46.386h29.591
	h7.886l27.779-37.088H228.081z"/>
<polygon class="fill" id="fill-3" fill="#fff" points="204.734,211.291 227.936,180.441 198.491,140.921 152.105,140.921 "/>

<line class="slash" id="slash-1" fill="#5D5D5D" x1="318" y1="49.247" x2="-110.5" y2="49.247"/>
<line class="slash" id="slash-2" fill="#5D5D5D" x1="318" y1="86.335" x2="-110.5" y2="86.335"/>
<line class="slash" id="slash-4" fill="#5D5D5D" x1="236.366" y1="232.024" x2="452.152" y2="-56.96"/>
<line class="slash" id="slash-3" fill="#5D5D5D" x1="206.649" y1="209.833" x2="422.435" y2="-79.151"/>
<line class="slash" id="slash-5" fill="#5D5D5D" x1="236.886" y1="103.833" x2="-40.692" y2="103.833"/>
<line class="slash" id="slash-6" fill="#5D5D5D" x1="236.886" y1="140.921" x2="-40.692" y2="140.921"/>
<line class="slash" id="slash-7" fill="#5D5D5D" x1="229.149" y1="181.538" x2="34.674" y2="-76.658"/>
<line class="slash" id="slash-8" fill="#5D5D5D" x1="199.523" y1="203.851" x2="5.049" y2="-54.345"/>
</svg>
              
            
!

CSS

              
                .slash {
  stroke-dashoffset: 400;
  stroke-dasharray: 395;
  stroke: #fff;
}

.fill,
#bg,
.letter {
  opacity: 0;
}

svg {
  display: block;
  margin: 0 auto;
  width: 80%;
  height: 100%;
  max-width: 300px;
}

body {
  background: #973BE8;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}
html, body {
  height: 100%;
  margin: 0;
}
              
            
!

JS

              
                var slashAnimate = anime({
	targets: '.slash',
	easing: 'linear',
	duration: '300',
	delay: function(el, i) {
	    return (i * 100); 
	  },
	strokeDashoffset: '1000',
	stroke: 'red',
	opacity: '0'
});
var fillAnimate = anime({
	targets: '.fill',
	easing: 'linear',
	duration: '300',
	delay:  function(el, i) {
	    return 200 + (i * 200);
	  },
	opacity: '1',
	complete: function(){
		document.getElementById("bg").style.opacity = 1;
		var letterAnimate = anime({
			targets: '.letter',
			easing: 'easeInBounce',
			duration: '600',
			delay:  function(el, i) {
			    return i * 100; 
			  },
			opacity: '1',
		});
	}
});

              
            
!
999px

Console