Pen Settings



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


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


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.


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.


  <h3 id="morning_degree">36<sup>o</sup></h3>
  <h3 id="night_degree">24<sup>o</sup></h3>
  <div id="moon"></div>
  <div id="mountains"></div>
  <div id="river"></div>
  <div id="sun"></div>


  background: #674172;

/* Background */
  background-color: rgba(255,177,77,1);
  width: 350px;
  height: 350px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  overflow: hidden;
  border-radius: 20px;
  animation: bg 18s infinite linear both;
  box-shadow: 0 0 25px 3px #333;
@keyframes bg{
  0%,20%,30%{background-color: rgba(255,177,77,1)}
  40%{background-color: rgba(47,53,117,1)}
  50%{background-color: rgba(47,53,117,1)}
  60%{background-color: rgba(47,53,117,1)}
  80%,90%,100%{background-color: rgba(255,177,77,1)}

  position: absolute;
  left: 20px;
  font-size: 50px;
  font-family: sans-serif;
  color: white;
  animation: mdegree 18s infinite linear both;
  position: absolute;
  font-size: 18px;
@keyframes mdegree{
  0%,20%,30%{left: 20px}
  40%,50%,60%{left: -80px}
  80%,90%,100%{left: 20px}

  position: absolute;
  top: -120px;
  left: 20px;
  font-size: 50px;
  font-family: sans-serif;
  color: white;
  animation: ndegree 18s infinite linear both;
  position: absolute;
  font-size: 18px;
@keyframes ndegree{
  0%,20%,30%{top: -120px}
  40%,50%,60%{top: 0px}
  80%,90%,100%{top: -120px}

/* SUN */
  position: absolute;
  top: -80px;
  right: -50px;
  background: yellow;
  width: 150px;
  height: 150px;
  border-radius: 100%;
  box-shadow: 0 0 0 80px rgba(255,255,255,0.3), 0 0 0 160px rgba(255,255,255,0.3);
  animation: sun 18s infinite linear both;
@keyframes sun{
  0%,20%,30%{top: -80px}
  40%,50%,60%{top: -420px}
  80%,90%,100%{top: -80px}

/* Moon */
  position: absolute;
  top: -140px;
  right: 40px;
  background: white;
  width: 100px;
  height: 100px;
  border-radius: 100%;
  box-shadow: 0 0 0 20px rgba(255,255,255,0.3), 0 0 0 40px rgba(255,255,255,0.3);
  animation: moon 18s infinite linear both;
@keyframes moon{
  0%,20%,30%{top: -140px}
  40%,50%,60%{top: 40px}
  80%,90%,100%{top: -140px}

  background: #1BBC9B;
  width: 250px;
  height: 150px;
  border-top-left-radius: 150px;
  border-top-right-radius: 150px;
  position: absolute;
  bottom: -50px;
  left: -50px;
  box-shadow: 180px 0 0 0  rgba(27, 198, 155,1);
  animation: mountains 18s infinite linear both;
@keyframes mountains{
  0%,20%,30%{bottom: -60px}
  40%,50%,60%{bottom: -420px}
  80%,90%,100%{bottom: -60px}

/* River */
  background: rgba(0,182,217,1);
  width: 50px;
  height: 80px;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  position: absolute;
  bottom: 0px;
  left: -40px;
  box-shadow: 30px 15px 0 0 rgba(0,182,217,1),60px 5px 0 0 rgba(0,182,217,1),90px 10px 0 0 rgba(0,182,217,1),120px 5px 0 0 rgba(0,182,217,1),150px 10px 0 0 rgba(0,182,217,1),180px 5px 0 0 rgba(0,182,217,1),210px 10px 0 0 rgba(0,182,217,1),240px 5px 0 0 rgba(0,182,217,1),270px 10px 0 0 rgba(0,182,217,1),300px 5px 0 0 rgba(0,182,217,1),330px 10px 0 0 rgba(0,182,217,1),360px 5px 0 0 rgba(0,182,217,1);
  animation: river 18s infinite linear both;
@keyframes river{
  0%,20%,30%{bottom: -80px}
  40%,50%,60%{bottom: 0px}
  80%,90%,100%{bottom: -80px}

/*  Rain  */
/*  div{
   margin: 150px;
   width: 3px;
   height: 80px;
   transform: rotate(25deg);
   background: rgba(255,255,255,0.4); 
   box-shadow: 20px 0 0 0 rgba(255,255,255,0.4), 40px 0 0 0 rgba(255,255,255,0.4);
  } */