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.

            
              <div class="container">
  <div class="content">
    <div class="logo-box">
      <svg class="logo" viewBox="0 0 338 136"><use xmlns:xlink="//www.w3.org/1999/xlink" xlink:href="#logo"></use></svg>
    </div>
    <div class="bar-box">
      <div class="bar"></div>
      <div class="bar"></div>
    </div>
  </div>
</div>

<div class="invisible">
<svg id="logo" version="1.0" xmlns="http://www.w3.org/2000/svg"
 viewBox="0 0 338 136"
 preserveAspectRatio="xMidYMid meet">
<g transform="translate(0,136) scale(0.1,-0.1)"
fill="#FFF" stroke="none">
<path d="M140 1329 c0 -11 5 -29 10 -40 7 -13 7 -19 0 -19 -5 0 -11 -19 -12
-42 l-1 -43 -6 49 c-4 36 -11 50 -23 52 -15 2 -18 -6 -18 -51 l0 -52 53 -7
c107 -14 97 6 97 -197 l0 -179 -45 -22 c-25 -12 -45 -25 -45 -28 0 -3 20 -16
45 -28 l45 -22 0 -204 0 -205 -32 -5 c-18 -3 -51 -7 -73 -8 l-40 -3 -3 -82 -3
-83 91 0 90 0 1 33 1 32 7 -30 6 -30 177 -3 c169 -2 176 -2 171 17 -2 10 0 22
6 25 11 7 34 -28 24 -38 -3 -3 1 -6 10 -6 15 0 17 12 17 84 l0 84 -76 4 c-52
2 -78 8 -84 18 -5 8 -10 78 -10 156 l0 141 93 6 c102 7 194 31 259 70 50 29
142 123 134 136 -3 5 0 11 8 14 24 9 48 102 48 186 0 82 -22 152 -60 194 -16
18 -17 18 -23 0 -6 -14 -8 -12 -8 9 -1 38 -63 82 -155 110 -61 19 -100 22
-269 25 l-199 4 6 -33 5 -33 -11 33 c-9 26 -16 32 -39 32 -26 0 -28 -3 -32
-47 l-3 -48 -2 48 c-2 40 -5 47 -22 47 -17 0 -20 -7 -20 -45 0 -39 3 -45 25
-51 14 -3 25 -10 25 -15 0 -5 -11 -4 -24 1 -13 5 -27 6 -30 3 -7 -7 -8 7 -6
65 l2 42 -41 0 c-35 0 -41 -3 -41 -21z m527 -178 c57 -27 84 -79 85 -170 1
-121 -56 -185 -172 -193 l-55 -3 -2 180 c0 99 1 186 3 193 5 19 93 14 141 -7z"/>
<path d="M1080 1264 c0 -83 0 -84 24 -82 14 1 24 6 23 11 -1 5 3 11 10 14 7 3
10 -3 6 -15 -4 -17 2 -20 34 -24 21 -3 47 -8 57 -13 17 -8 19 -5 13 33 -3 23
-1 42 4 42 5 0 9 -21 9 -47 0 -40 7 -58 44 -111 43 -61 45 -62 49 -35 3 20 4
17 6 -14 0 -24 6 -43 11 -43 6 0 10 -4 10 -10 0 -5 27 -47 59 -94 l59 -84 -39
-17 c-21 -10 -39 -21 -39 -24 0 -3 25 -19 55 -35 l55 -29 -23 -31 c-214 -284
-229 -306 -218 -320 7 -9 8 -17 3 -20 -6 -3 -13 1 -16 10 -5 13 -11 12 -36
-10 -30 -25 -58 -33 -130 -38 l-35 -3 -3 -82 -3 -83 266 0 265 0 0 83 0 84
-56 1 c-30 0 -57 2 -60 4 -2 3 24 47 59 99 38 57 62 102 59 114 -2 15 -1 16 6
7 7 -11 14 -7 32 17 l22 32 63 -100 c63 -98 95 -155 95 -166 0 -3 -29 -5 -65
-5 l-65 0 0 -85 0 -85 185 0 185 0 -6 47 c-4 36 -3 44 5 33 6 -8 11 -30 11
-47 l0 -33 110 0 110 0 -3 83 -3 82 -47 5 c-30 4 -55 14 -72 30 -14 14 -77 98
-138 188 l-112 163 -5 -43 c-6 -41 -6 -41 -10 20 -3 35 -2 71 2 80 4 9 7 11 7
5 1 -9 10 -8 36 4 19 9 35 20 35 24 0 8 -62 35 -73 31 -13 -4 -39 28 -34 41 3
6 57 79 120 161 74 95 114 154 110 165 -4 12 -3 13 5 2 8 -11 13 -11 33 2 13
9 52 19 87 23 57 6 62 8 62 31 0 14 -4 21 -10 18 -6 -3 -10 4 -10 17 0 18 2
20 10 8 7 -11 10 2 10 43 l0 57 -117 -1 c-77 -1 -121 -5 -125 -12 -6 -9 -8 -9
-8 1 0 9 -28 12 -104 12 l-104 0 4 -47 3 -48 -13 50 c-8 28 -15 41 -15 30 -2
-18 -2 -19 -12 -2 -5 9 -17 17 -24 17 -12 0 -15 -17 -15 -84 l0 -84 45 -4 44
-3 4 50 3 50 2 -52 c1 -29 7 -53 12 -53 6 0 10 -12 10 -27 0 -23 -2 -25 -11
-13 -8 11 -9 4 -7 -27 2 -24 -1 -43 -6 -43 -5 0 -6 -15 -3 -33 3 -18 3 -45 0
-60 l-6 -28 -11 23 c-7 13 -9 25 -6 28 4 3 10 29 13 59 4 30 3 50 -1 45 -41
-48 -63 -88 -59 -105 4 -15 2 -18 -7 -10 -9 8 -16 4 -26 -14 -7 -14 -17 -25
-21 -25 -4 0 -34 43 -67 95 -32 52 -63 91 -67 87 -5 -4 -5 -1 -1 6 4 7 3 19
-3 26 -9 11 1 15 50 20 69 8 70 9 27 103 l-22 48 -6 -70 -6 -70 -2 83 -2 82
-60 0 c-50 0 -60 -3 -60 -17 -1 -17 -1 -17 -14 0 -15 19 -36 23 -36 7 0 -7 -6
-7 -20 0 -11 6 -33 9 -50 8 -31 -2 -39 -13 -17 -21 9 -4 9 -6 -1 -6 -7 -1 -15
5 -18 13 -4 11 -33 14 -140 14 l-134 1 0 -85z"/>
<path d="M2361 1266 l2 -84 60 -7 c102 -11 97 -1 97 -195 l0 -170 -40 -20
c-26 -13 -40 -27 -40 -40 0 -13 14 -27 40 -40 l40 -20 0 -195 0 -195 -26 -10
c-14 -6 -48 -10 -75 -10 l-49 0 0 -85 0 -84 295 -1 295 0 0 85 0 85 -57 0
c-110 0 -104 -11 -101 168 l3 156 48 -3 c26 -1 61 0 77 4 27 6 29 10 33 63 l3
57 2 -57 c1 -32 7 -58 12 -58 28 0 138 45 185 74 75 48 161 158 132 169 -7 4
-6 6 4 6 12 1 20 18 29 61 27 126 -11 257 -94 325 -45 37 -131 79 -183 90
l-31 6 0 -56 c0 -34 6 -62 14 -70 16 -16 19 -61 4 -70 -5 -3 -10 -21 -10 -38
0 -24 -3 -28 -10 -17 -5 8 -10 67 -10 131 l0 117 -31 6 c-53 10 -117 7 -122
-6 -4 -10 -6 -10 -6 -1 -1 10 -59 13 -247 12 l-245 0 2 -83z m555 -107 c33 -9
54 -22 79 -54 33 -39 35 -47 35 -111 0 -68 -23 -143 -49 -158 -6 -4 -11 -17
-11 -29 0 -15 -3 -18 -8 -9 -6 9 -16 10 -33 4 -13 -5 -48 -12 -76 -16 l-53 -7
0 196 0 195 36 0 c19 0 55 -5 80 -11z"/>
</g>
</svg>
</div>
            
          
!
            
              body { background: linear-gradient(to top right, #395169, #4A627A ); }
.invisible { display: none; }

.container {
  display: flex;
  justify-content:  center; 
  align-items: center;
  height: 325px;
}

.content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-box {
  position: absolute; 
  left: 20%;
  display: flex;
  justify-content: center;
}

.logo {
  width: 250px;
  opacity: 0;
  animation: fade-in 3s 1.4s forwards; 
}

.bar-box {
  display: flex;
  flex-direction: column;
  height: 15px;
  width: 50px;
  justify-content: space-between;
  animation: grow 1.3s .2s forwards;
}

.bar {
  background: white;
  height: 4px;
  animation: shrink 1s .6s forwards;
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1;}
}

@keyframes grow { 
  0% { width: 50px; height: 15px; } 
  50% { height: 150px; width: 50px; }
  100% { height: 150px; width: 400px; }
}

@keyframes shrink {
  0% { }
  100% { transform: scale(1, .3); }
}
            
          
!
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.

Console