Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <div class="wrapper">
    <div class="moon"></div>
    
    <div class="cloud">
     <div class="c-1"></div>
     <div class="c-2"></div>
     <div class="c-3"></div>
     <div class="c-4"></div>
    </div>
    
    <div class="cloud cloud-right">
     <div class="c-1"></div>
     <div class="c-2"></div>
     <div class="c-3"></div>
     <div class="c-4"></div>
    </div>
    
    <div class="ground">
      <div class="g-1"></div>
      <div class="g-2"></div>
      <div class="g-3"></div>
      <div class="g-4"></div>
      <div class="g-5"></div>
      <div class="g-6"></div>
      <div class="g-7"></div>
      <div class="g-8"></div>
    </div>

    <div class="base-building"></div>
    <div class="base-building-roof"></div>
    
    <div class="base-building-gray"></div>

    
    <div class="right-building-left-side"></div>
    <div class="right-building-right-side"></div>

    <div class="right-building-left-roof"></div>
    <div class="right-building-right-roof"></div>

    <div class="right-building-left-chimney"></div>
    <div class="right-building-right-chimney"></div>


    <div class="tower-base-left"></div>
    <div class="tower-base-right"></div>

    <div class="trellis-bottom">
      <div class="t-v-1"></div>
      <div class="t-v-2"></div>
      <div class="t-v-3"></div>
      <div class="t-b-1"></div>
      <div class="t-b-2"></div>
      <div class="t-b-3"></div>
      <div class="t-b-4"></div>
      <div class="t-b-5"></div>
      <div class="t-b-6"></div>
      <div class="t-b-7"></div>
      <div class="t-b-8"></div>
      <div class="t-b-9"></div>
    </div>


    <div class="trellis-top">
      <div class="t-t-v-1"></div>
      <div class="t-t-v-2"></div>
      <div class="t-t-v-3"></div>
      <div class="t-t-b-1"></div>
      <div class="t-triangle"></div>
      <div class="t-line"></div>
      <div class="t-bulb"></div>
    </div>

    <div class="starWrapper"></div>


  </div>

<div class="twitter">
  <a href="https://twitter.com/albertwalicki?ref_src=twsrc%5Etfw" class="twitter-follow-button" data-show-count="false">Follow @albertwalicki</a><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>
              
            
!

CSS

              
                 * {
    box-sizing: border-box;
  }

  :root {
    --blue:#4383FF;
    --blue-dark: #0C327D;
    --yellow:#FDF187;
    --yellow-dark:#FBDE54;
    --gray-dark: #303B45;
    --gray-light:#B3C7C8;
    --black: #101413;
    --white: #fff;
  }

  body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
  }

  .wrapper {
    margin: 0 auto;
    width: 564px;
    height: 791px;
    border: 1px solid #fff;
    background: linear-gradient(var(--blue-dark) 480px, var(--blue) 480px);
    position: relative;
    overflow: hidden;
    z-index: 1;
  }

  .moon {
    position: absolute;
    top: 105px;
    left: 215px;
    border-radius: 50%;
    width: 145px;
    height: 145px;
    background: var(--yellow);
  }

  .moon:before {
    content: '';
    position: absolute;
    right:0;
    top:0;
    width: 100px;
    height: 100px;
    background: 
      radial-gradient(var(--yellow-dark) 50%, transparent 50%) 36px 48px/25px 25px,
      radial-gradient(var(--yellow-dark) 50%, transparent 50%) 57px 37px/34px 34px,
      radial-gradient(var(--yellow-dark) 50%, transparent 50%) 21px 6px/50px 50px;
    background-repeat: no-repeat;
  }


  .cloud {
    width: 300px;
    height: 100px;
    position: absolute;
    overflow: hidden;
    top: 66px;
    animation: wind 12s infinite;
    animation-timing-function: ease-in-out;
  }

@keyframes wind {
  50% {transform: translate(-20px, -5px)}
}

@keyframes wind2 {
  50% {transform: scaleX(-1) translate( 0px, -5px)}
}

  

  .cloud.cloud-right {
    transform: scaleX(-1) translate( -20px, 0px);
    right: 0;
    top: 106px;
    animation: wind2 12s infinite;
    animation-timing-function: ease-in-out;
  }

  .cloud > div {
      position: absolute;
      background: var(--blue);
      border-radius: 50%;
      position: absolute;
    }

  .c-1 {
    width: 150px;
    height: 150px;
    left: -83px;
  }
  .c-2 {
    width: 90px;
    height: 90px;
    left: 38px;
    top: 40px;
  }
  .c-3 {
    width: 100px;
    height: 100px;
    right: 91px;
    top: 51px;
  }
  .c-4 {
    width: 180px;
    height: 180px;
    right: -23px;
    top: 86px;
  }

  .ground {
    position: absolute;
    bottom:0;
    left:0;
    right:0;
    height: 248px;
    z-index: 10;
  }
  .ground div {
    position: absolute;
    background: var(--black);
  }

  .g-1 {
    bottom:0;
    left:0;
    right:0;
    height: 185px;
  }
  .g-2 {
    width: 100px;
    height: 30px;
    top: 48px;
    left: 0;
    transform: rotate(-16deg);
  }
  .g-3 {
    width: 200px;
    height: 60px;
    top: 8px;
    left: 190px;
    transform: rotate(0deg);
  }
  .g-4 {
    width: 200px;
    height: 60px;
    top: 11px;
    left: 370px;
    transform: rotate(2deg);
  }
  .g-5 {
    width: 200px;
    height: 60px;
    top: 11px;
    left: 332px;
    transform: rotate(-7deg);
    border-radius: 0 20px 0 0;
  }
  .g-6 {
    width: 200px;
    height: 60px;
    top: 8px;
    right: -16px;
    transform: rotate(-11deg);
  }
  .g-7 {
    width: 390px;
    height: 240px;
    top: 18px;
    left: 64px;
    border-radius: 50% 50%;
    transform: rotate(19deg);
  }
  .g-8 {
    width: 390px;
    height: 240px;
    top: 30px;
    left: 15px;
    border-radius: 50% 50%;
    transform: rotate(17deg);
  }

  .base-building {
    width: 200px;
    height: 40px;
    background: #fff;
    position: absolute;
    top: 535px;
    left: 132px;
  }
  .base-building::before {
    content: '';
    position: absolute;
    top:0;
    bottom:0;
    left: 0;
    right:0;
    background: 
    linear-gradient( var(--black), var(--black) ) 12px 8px / 7px 15px,
    linear-gradient( var(--black), var(--black) ) 33px 8px / 7px 15px,
    linear-gradient( var(--black), var(--black) ) 54px 8px / 7px 15px,
    linear-gradient( var(--black), var(--black) ) 75px 8px / 7px 15px,
    linear-gradient( var(--black), var(--black) ) 95px 8px / 7px 15px;
    background-repeat: no-repeat;
  }
  .base-building-gray {
    width: 150px;
    height: 40px;
    background: var(--gray-light);
    position: absolute;
    top: 533px;
    left: 238px;
  }
  .base-building-roof {
    border-bottom: 25px solid var(--black);
    border-left: 20px solid transparent;
    height: 0;
    width: 208px;
    position: absolute;
    top: 510px;
    left: 125px;
  }
  .base-building-roof:before {
    content: '';
    position: absolute;
    left: 5px;
    width: 3px;
    height: 10px;
    background: var(--black);
    top: -9px;
  }

  .right-building-left-side {
    position: absolute;
    right: 206px;
    top: 513px;
    background: #fff;
    width: 54px;
    height: 41px;
    z-index: 2;
  }

  .right-building-left-side::after {
    content: '';
    position: absolute;
    top:0;
    bottom:0;
    left: 0;
    right:0;
    background: 
    linear-gradient( var(--gray-dark), var(--gray-dark) ) 32px 8px / 7px 19px,
    linear-gradient( var(--gray-dark), var(--gray-dark) ) 15px 8px / 7px 19px;
    background-repeat: no-repeat;
  }

  .right-building-left-side:before {
    content: '';
    position: absolute;
    top: -26px;
    right: -1px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 28px 26px 28px;
    border-color: transparent transparent #fff transparent;
  }

  .right-building-right-side {
    position: absolute;
    right: 136px;
    top: 513px;
    background: var(--gray-light);
    width: 70px;
    height: 41px;
  }
  .right-building-right-side:after {
    content: '';
    position: absolute;
    top:0;
    bottom:0;
    left: 0;
    right:0;
    background: 
    linear-gradient( var(--gray-dark), var(--gray-dark) ) 50px 8px / 7px 19px,
    linear-gradient( var(--gray-dark), var(--gray-dark) ) 29px 14px / 8px 26px,
    linear-gradient( var(--gray-dark), var(--gray-dark) ) 11px 8px / 7px 19px;
    background-repeat: no-repeat;
  }

  .right-building-left-roof {
    width: 5px;
    height: 31px;
    transform: skew(-47deg);
    background: var(--black);
    position: absolute;
    top: 486px;
    right: 245px;
    z-index: 2;
  }
  .right-building-right-roof {
    width: 80px;
    height: 27px;
    transform: skew(45deg);
    background: var(--black);
    position: absolute;
    top: 486px;
    right: 141px;
  }

  .right-building-left-chimney {
    background: var(--black);
    right: 218px;
    position: absolute;
    top: 470px;
    width: 10px;
    height: 20px;
  }
  .right-building-right-chimney {
    background: var(--black);
    right: 165px;
    position: absolute;
    top: 470px;
    width: 10px;
    height: 20px;
  }


  .tower-base-left {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 300px 20px;
    border-color: transparent transparent #fff transparent;
    position: absolute;
    left: 242px;
    top: 226px;
  }

  .tower-base-left:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0px;
    background: #fff;
    width: 25px;
    height: 300px;
  }
  .tower-base-left:after {
    content: '';
    position: absolute;
    top: 105px;
    left: 0px;
    width: 30px;
    height: 34px;
    background:
    radial-gradient(var(--gray-dark) 50%, transparent 50%) 2px 8px/12px 12px,
    linear-gradient( var(--gray-dark), var(--gray-dark) ) 4px 14px / 8px 19px;
    background-repeat: no-repeat;
  }

  .tower-base-right {
    width: 0;
    height: 0;
    border-style: solid;
    position: absolute;
    right: 231px;
    top: 226px;
    border-width: 300px 0 0 20px;
    border-color: transparent transparent transparent var(--gray-light);
  }
  .tower-base-right:after {
    content: '';
    position: absolute;
    top: -138px;
    left: -34px;
    width: 30px;
    height: 34px;
    background: radial-gradient(var(--gray-dark) 50%, transparent 50%) 2px 8px/12px 12px, linear-gradient( var(--gray-dark), var(--gray-dark) ) 4px 14px / 8px 19px;
    background-repeat: no-repeat;
  }

  .tower-base-right:before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 20px;
    background: var(--gray-light);
    width: 24px;
    height: 300px;
  }
  .trellis-bottom {
    width: 77px;
    height: 41px;
    position: absolute;
    top: 236px;
    left: 248px;
  }

  .trellis-top div,
  .trellis-bottom div{
    position: absolute;
    background: var(--black);
  }
  .t-v-1{
    height: 4px;
    bottom: 0;
    left: 9px;
    right: 9px;
  }
  .t-v-2{
    height: 2px;
    top: 15px;
    left: 0px;
    right: 0;
  }
  .t-v-3{
    height: 1px;
    top: 0;
    left: 0px;
    right: 0;
  }
  .t-b-1{
    width: 2px;
    height: 26px;
    top: 14px;
    left: 3px;
    transform: rotate(-22deg);
  }
  .t-b-2{
    width: 2px;
    height: 26px;
    left: 21px;
    top: 15px;
  }
  .t-b-3{
    width: 2px;
    height: 26px;
    left: 31px;
    top: 15px;
  }
  .t-b-4{
    width: 2px;
    height: 26px;
    left: 43px;
    top: 15px;
  }
  .t-b-5{
    width: 2px;
    height: 26px;
    left: 54px;
    top: 15px;
  }
  .t-b-6{
    width: 2px;
    height: 26px;
    top: 14px;
    right: 3px;
    transform: rotate(22deg);
  }
  .t-b-7{
    width: 2px;
    height: 26px;
    top: 14px;
    left: 10px;
  }

  .t-b-8{
    width: 2px;
    height: 26px;
    top: 14px;
    right: 10px;
  }
  
  .t-b-9 {
    width: 100%;
    height: 16px;
    left:0;
    top:0;
    background: none !important;
    background-image: linear-gradient(90deg, var(--black) 20%, transparent 20%, transparent 50%, var(--black) 50%, var(--black) 70%, transparent 70%, transparent 100%) !important;
    background-size: 10.00px 10.00px !important;
  }

  .trellis-top {
    width: 59px;
    height: 42px;
    position: absolute;
    top: 184px;
    left: 258px;
  }

  .t-t-v-1 {
    height: 4px;
    bottom: 0;
    left: 0px;
    right: 0px;
  }
  .t-t-v-2 {
    height: 2px;
    width: 43px;
    top: 27px;
    left: 7px;
  }
  .t-t-v-3 {
    height: 2px;
    width: 43px;
    top: 12px;
    left: 7px;
  }
  .t-t-b-1 {
    width: 44px;
    height: 38px;
    left: 6px;
    top: 0;
    background: none !important;
    background-image: linear-gradient(90deg, var(--black) 16.67%, transparent 16.67%, transparent 50%, var(--black) 50%, var(--black) 66.67%, transparent 66.67%, transparent 100%) !important;
    background-size: 6.00px 6.00px !important;
  }
  .t-triangle{
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 25px 13px 25px;
    border-color: transparent transparent var(--black) transparent;
    background: transparent !important;
    position: absolute;
    top: -13px;
    left: 3px;
  }

  .t-line {
    width: 2px;
    height: 16px;
    position: absolute;
    top: -25px;
    left: 27px;
  }
  .t-bulb {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    position: absolute;
    left: 25px;
    top: -21px;
  }

  .starWrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 309px;
    border-radius: 100%;
    width: 2px;
    height: 3px;
    z-index: -1;
  
    box-shadow: 
      5px 15px 2px white, 
      100px 35px 2px white, 
      200px 45px 2px white, 
      300px 15px 2px white, 
      400px 28px 2px white, 
      500px 44px 2px white,

      5px 115px 2px white, 
      100px 235px 2px white, 
      200px 345px 2px white, 
      300px 115px 2px white, 
      400px 228px 2px white, 
      500px 344px 2px white,

      55px 115px 2px white, 
      120px 235px 2px white, 
      150px 345px 2px white, 
      200px 115px 2px white, 
      300px 228px 2px white, 
      400px 344px 2px white,

      25px 200px 2px white,
      10px 400px 2px white,
      120px 450px 2px white,
      100px 300px 2px white,
      70px 360px 2px white,
      530px 300px 2px white,
      440px 230px 2px white,
      480px 360px 2px white,
      400px 430px 2px white;
    opacity: 0.8;
  }

@media (max-width:630px) {
  html {
    overflow: hidden;
    position: relative;
  }
  .wrapper {
    min-width: 564px;
    transform: scale(0.4);
    transform-origin: center;
    position: relative;
    top: -142px;
  }
}


.twitter {
  position: fixed;
  bottom:20px;
  right:20px;
  padding: 12px;
  background: #fff;
  box-shadow: 0px 0px 15px 10px rgba(0,0,0,0.12);
  max-width: 205px;
}


              
            
!

JS

              
                
              
            
!
999px

Console