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. 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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <body id="sky">
  <div id="sun"></div>

  <!-- cloud -->
  <div id="cloud1">
    <div class="cloudLayers">
      <div class="layer1"></div>
      <div class="layer2"></div>
      <div class="layer3"></div>
    </div>
  </div>
  <!--made with love by https://grohit.com/    -->
  <div id="cloud2">
    <div class="cloudLayers">
      <div class="layer1"></div>
      <div class="layer2"></div>
      <div class="layer3"></div>
    </div>
  </div>
  <div class="spacer">
    <!-- greetings -->
  </div>
  <div class="greeting">
    <span>G</span>
    <span>o</span>
    <span>o</span>
    <span>d</span>
    <span>&nbsp;&nbsp;</span>
    <span>M</span>
    <span>o</span>
    <span>r</span>
    <span>n</span>
    <span>i</span>
    <span>n</span>
    <span>g</span>
  </div>
</body>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "ZCOOL KuaiLe", display;
}

#sky {
  background: #017cfe;
  position: relative;
  height: 100vh;
}

#sun {
  background: yellow;
  border-radius: 50%;

  margin-top: 50px;
  margin-left: 100px;
  animation: shine 5s linear forwards;
}
// made with love by https://grohit.com/

/* animation keyframes for the sun */
@keyframes shine {
  from {
    box-shadow: 0 0 10px 10px yellow;
    width: 50px;
    height: 50px;
  }
  to {
    width: 150px;
    height: 150px;
    box-shadow: 0 0 20px 20px yellow;
  }
}

#cloud1 {
  z-index: 100;
  animation: drift 25s linear infinite;
}
#cloud2 {
  z-index: 200;
  animation: drift 35s linear infinite;
}
#cloud1,
#cloud2 {
  position: absolute;
}

#cloud1 {
  top: 80px;
  left: 100px;
  z-index: 200;
  .cloudLayers {
    .layer1 {
      width: 250px;
      height: 100px;
      border-radius: 50px;
      background: #ffffff;
      position: absolute;
    }
    .layer2 {
      position: absolute;
      width: 90px;
      height: 90px;
      border-radius: 50%;
      background: #fff;
      top: -40px;
      left: 120px;
      z-index: -1;
    }
    .layer3 {
      position: absolute;
      width: 120px;
      height: 120px;
      border-radius: 50%;
      background: #fff;
      top: -60px;
      left: 40px;
      z-index: -2;
    }
  }
}

#cloud2 {
  top: 280px;
  left: 50px;
  z-index: 200;
  .cloudLayers {
    .layer1 {
      width: 250px;
      height: 100px;
      border-radius: 50px;
      background: #ffffff;
      position: absolute;
    }
    .layer2 {
      position: absolute;
      width: 90px;
      height: 90px;
      border-radius: 50%;
      background: #fff;
      top: -40px;
      left: 120px;
      z-index: -1;
    }
    .layer3 {
      position: absolute;
      width: 120px;
      height: 120px;
      border-radius: 50%;
      background: #fff;
      top: -60px;
      left: 40px;
      z-index: -2;
    }
  }
}
/* cloud animation keyframes */
@keyframes drift {
  from {
    transform: translateX(-600px);
    opacity: 0.8;
  }
  to {
    transform: translateX(1800px);
    opacity: 1;
  }
}

.spacer {
  height: 300px;
}
.greeting {
  text-transform: uppercase;
  font-size: 10em;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}
/* color for alternate span */
.greeting span:nth-child(even) {
  color: #2acfab;
}
.greeting span:nth-child(odd) {
  color: white;
}
.greeting span {
  transform-origin: 50% 70%;
}
/* animation for each span  */
.greeting span:nth-child(1) {
  animation: flipUp 1s ease-in-out both 5s;
}
.greeting span:nth-child(2) {
  animation: flipUp 1s ease-in-out both 5.2s;
}
.greeting span:nth-child(3) {
  animation: flipUp 1s ease-in-out both 5.4s;
}
.greeting span:nth-child(4) {
  animation: flipUp 1s ease-in-out both 5.6s;
}
.greeting span:nth-child(6) {
  animation: flipUp 1s ease-in-out both 5.8s;
}
.greeting span:nth-child(7) {
  animation: flipUp 1s ease-in-out both 6s;
}
.greeting span:nth-child(8) {
  animation: flipUp 1s ease-in-out both 6.2s;
}
.greeting span:nth-child(9) {
  animation: flipUp 1s ease-in-out both 6.4s;
}
.greeting span:nth-child(10) {
  animation: flipUp 1s ease-in-out both 6.6s;
}
.greeting span:nth-child(11) {
  animation: flipUp 1s ease-in-out both 6.8s;
}
.greeting span:nth-child(12) {
  animation: flipUp 1s ease-in-out both 7s;
}
@keyframes flipUp {
  from {
    transform: rotateX(90deg);
  }
  to {
    transform: rotateX(0deg);
  }
}

// made with love by https://grohit.com/

              
            
!

JS

              
                //  PURE CSS
// made by https://codepen.io/grohit/
// twitter: @DevelopoerRohit
// IG: @uiux.rohit
// https://grohit.com/

// Pls see this in full screen view
// https://codepen.io/grohit/full/xxVWJVN

              
            
!
999px

Console