123

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 bg">
  <div class="figure">
    <div class="figure-body">
      <svg width="100%" height="100%" viewBox="0 0 1059 630" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"><rect id="parachuter" x="0" y="0" width="1058.2" height="629.982" style="fill:#fff;fill-opacity:0;"/><g id="figure"><path d="M531.298,230.677c20.952,-0.482 106.747,-7.472 195.612,-86.08c50.068,-44.288 77.303,-63.006 109.227,-48.596c4.333,-7.649 8.345,-18.07 10.53,-34.816c5.573,-42.728 5.944,-43.526 22.785,-42.189c16.396,1.302 10.191,12.16 5.615,42.189c-3.209,21.059 -1.48,24.159 11.423,26.919c15.406,3.296 18.417,-12.378 27.593,-40.125c15.27,-46.181 11.265,-51.543 39.568,-40.941c14.154,5.303 4.531,21.368 -21.321,81.066c-5.455,12.596 15.201,36.091 27.081,25.779c53.309,-46.269 68.181,-70.76 86.989,-52.698c22.936,22.026 0,34.391 0,34.391c0,0 -29.684,22.373 -73.551,55.514c-13.528,10.22 -23.541,29.255 35.795,62.122c37.755,20.913 6.437,42.793 0,46.431c-4.546,2.57 -27.729,-32.802 -63.911,-33.863c-5.805,-0.17 -11.108,-0.286 -15.923,-0.36c-2.93,26.234 -23.689,48.049 -53.36,72.272c-70.402,57.473 -95.878,80.29 -102.783,118.289c-0.782,4.307 17.596,-39.083 57.222,0c24.668,24.33 17.892,54.688 62.14,82.589c19.957,12.584 33.232,50.741 0,78.702c-33.231,27.961 -60.454,-4.931 -77.021,-16.401c-0.972,-0.673 -10.358,45.937 -71.709,63.84c-56.591,16.513 -59.092,-26.879 -205.523,-27.388c-2.917,-0.01 -5.883,-0.041 -8.899,-0.048c-3.017,0.007 -5.983,0.038 -8.9,0.048c-146.43,0.509 -148.931,43.901 -205.523,27.388c-61.351,-17.903 -70.737,-64.513 -71.709,-63.84c-16.566,11.47 -43.79,44.362 -77.021,16.401c-33.231,-27.961 -19.957,-66.118 0,-78.702c44.249,-27.901 37.472,-58.259 62.14,-82.589c39.626,-39.083 58.005,4.307 57.222,0c-6.905,-37.999 -32.381,-60.816 -102.782,-118.289c-29.671,-24.223 -50.43,-46.038 -53.361,-72.272c-4.814,0.074 -10.118,0.19 -15.923,0.36c-36.182,1.061 -59.364,36.433 -63.911,33.863c-6.437,-3.638 -37.754,-25.518 0,-46.431c59.337,-32.867 49.323,-51.902 35.795,-62.122c-43.867,-33.141 -73.551,-55.514 -73.551,-55.514c0,0 -22.935,-12.365 0,-34.391c18.808,-18.062 33.68,6.429 86.989,52.698c11.88,10.312 32.536,-13.183 27.082,-25.779c-25.852,-59.698 -35.476,-75.763 -21.321,-81.066c28.303,-10.602 24.297,-5.24 39.568,40.941c9.175,27.747 12.187,43.421 27.593,40.125c12.902,-2.76 14.632,-5.86 11.423,-26.919c-4.577,-30.029 -10.782,-40.887 5.614,-42.189c16.842,-1.337 17.212,-0.539 22.786,42.189c2.184,16.746 6.196,27.167 10.529,34.816c31.924,-14.41 59.159,4.308 109.227,48.596c88.866,78.608 174.66,85.598 195.612,86.08l0,-0.002l0.178,0.006c0.864,0.018 1.614,0.026 2.244,0.027c0.63,-0.001 1.379,-0.008 2.243,-0.027l0.178,-0.006l0,0.002Zm52.073,81.267c0,0 42.029,-5.011 59.61,38.339c28.87,71.187 -8.204,65.307 -59.61,39.969c-34.047,-16.783 -45.41,-28.25 -47.843,-56.43c-2.301,-26.641 47.843,-21.878 47.843,-21.878Zm-108.989,0c0,0 -42.028,-5.011 -59.609,38.339c-28.871,71.187 8.203,65.307 59.609,39.969c34.048,-16.783 45.41,-28.25 47.844,-56.43c2.3,-26.641 -47.844,-21.878 -47.844,-21.878Z" style="fill:#FF7A7A;"/></g></svg>
    </div>
    <div class="string"></div>
  </div>
</div>
            
          
!
            
              /**************  descend  **************/
body{
  margin:0;
  padding:0;
  width:100vw;
  height:100vh;
}
@-webkit-keyframes descend {
    0%{background-position:0% 0%}
    100%{background-position:0% -200%}
}
@-moz-keyframes descend {
    0%{background-position:0% 0%}
    100%{background-position:0% -200%}
}
@-o-keyframes descend {
    0%{background-position:0% 0%}
    100%{background-position:0% -200%}
}
@keyframes descend { 
   0%{background-position:0% 0%}
    100%{background-position:0% -200%}
}
/*******************************************/

/**************  stringFlap  **************/
@-webkit-keyframes stringFlap {
    0%{background-position:0% 0%}
    100%{background-position:0% 100%}
}
@-moz-keyframes stringFlap {
    0%{background-position:0% 0%}
    100%{background-position:0% 100%}
}
@-o-keyframes stringFlap {
    0%{background-position:0% 0%}
    100%{background-position:0% 100%}
}
@keyframes stringFlap { 
   0%{background-position:0% 0%}
    100%{background-position:0% 100%}
}
.container{
  position:relative;
  display: -webkit-box;  
  display: -ms-flexbox;  
  display: -webkit-flex; 
  display: flex;     
  justify-content: center;
  align-items: center; 
  width: 100%;
  height: 100%;
  
}

.bg{

  background-image:
    linear-gradient(0deg, rgba(77, 129, 204, 0.33), rgba(77, 129, 204, 0.33)),
linear-gradient( 90deg, transparent 45%,#2a2a2a 45%, #2a2a2a 55%, transparent 55% ),
    linear-gradient( 90deg,transparent 25%, #1e1e1e 25%, #1e1e1e 75%, transparent 75%, transparent 100%),
  linear-gradient( 0deg, transparent 50%, #1e1e1e 50%),
    
   linear-gradient(0deg,#111, #111);
background-position: 0px 0px;
background-size: 20% 25%;
background-repeat:repeat;
animation: descend 1s linear infinite;
}

.figure{
  position: relative;
  display: -webkit-box;  
  display: -ms-flexbox;  
  display: -webkit-flex; 
  display: flex;     
  z-index:2;
  width: 33vw;
  align-items: center;
  justify-content: center;
  text-align: center;
  -webkit-filter:drop-shadow(0px 10px 10px black);
  filter:drop-shadow(0px 10px 10px rgba(0, 0, 0, 0.5));

}
.figure-body{
  position:relative;
  width:100%;
  
}

.string{
  position: absolute;
  top:4%;
  width: 8%;
  height:40%;
  left: 50%;
  background-size: 100% 200%;
  background-repeat: no-repeat;
    background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 83 534" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;"><rect id="string" x="0" y="0" width="82.461" height="533.43" style="fill:none;"/><path d="M73.714,4.235c2.634,51.857 -68.732,65.454 -68.732,128.575c0,63.121 69.301,82.452 69.732,134.518c0.432,52.067 -69.689,70.58 -69.732,130.224c-0.045,62.585 68.732,72.302 68.732,131.621" style="fill:none;stroke:%23FF7A7A;stroke-width:20px;"/></svg>');
animation: stringFlap 0.3s linear infinite;
}
            
          
!
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