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

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

              
                <div class="image-1">
  <div class="text">
      <span class="background">Scroll Down⬇</span>
  </div>
</div>

<div class="main">
  <h3>TULIPS</h3>
  <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur est urna, malesuada sollicitudin tempus non, rutrum eu diam. Suspendisse vitae lobortis ante, sit amet venenatis erat. Nulla sollicitudin placerat sapien id aliquam. Fusce malesuada, est at venenatis sagittis, nulla risus elementum neque, sit amet varius odio sem eget libero. Cras scelerisque ex lectus, vel molestie arcu tristique vulputate. Nunc fringilla suscipit massa. Praesent nulla sem, aliquam et molestie id, eleifend ac nunc. Aliquam augue odio, porta sed lacinia non, iaculis sed lorem. Proin pulvinar ex quis turpis pulvinar fringilla. Ut a risus dictum velit consequat consectetur ut eu nulla. Phasellus a convallis velit. Sed fermentum justo at justo semper, ut semper velit porta. Phasellus luctus est quam, id pulvinar urna consectetur ut. Mauris tristique erat ut risus varius placerat. Vivamus dui arcu, vulputate et mi nec, eleifend rhoncus nunc.
</p>
</div>

<div class="image-2">
  <div class="text">
  <span class="background">Tulip Festival</span>
  </div>
</div>

<div class="someText">
  <div style="background-color:#333;text-align:center;padding:50px 80px;text-align: justify;">
  <p>Scroll up and down to see how Parallax Scrolling works.</p>
  </div>
</div>

<div class="image-3">
  <div class="text">
  <span class="background">Scroll Up⬆</span>
  </div>
</div>

<div class="someText">
  <div style="background-color:#333;text-align:center;padding:50px 80px;text-align: justify;">
  <p>Scroll up and down to see how Parallax Scrolling works.</p>
  </div>
</div>

<div class="image-1">
  <div class="text">
  <span class="background">Thanks!</span>
  </div>
</div>
              
            
!

CSS

              
                body, html {
  height: 100%;
  margin: 0;
  font-family: tahoma;
  letter-spacing:2px;
  color: #333;
}

.image-1, .image-2, .image-3 {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.8;
}
.image-1 {
  background-image: url("https://lenadesign.org/wp-content/uploads/2021/07/1a-1024x576.jpg");
  min-height: 100%;
}

.image-2 {
  background-image: url("https://lenadesign.org/wp-content/uploads/2021/07/2a-1024x576.jpg");
  min-height: 450px;
}

.image-3 {
  background-image: url("https://lenadesign.org/wp-content/uploads/2021/07/3a-1024x576.jpg");
  min-height: 450px;
}

.text {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  text-align: center;
  color: #333;
}

.text .background {
  background-color: #000;
  border-radius:20px;
  color: #fff;
  padding: 18px;
  font-size: 25px;
  letter-spacing: 10px;
}

.main {
  color: #333;
  background-color:#fff;
  text-align:center;
  text-align: justify;
  padding:60px 90px;
}

h3 {
  letter-spacing: 5px;
  font-size: 20px;
  font-family: tahoma;
  color: #333;
  text-align:center;
}

.someText {
  position:relative;
  color: #fff;
}

@media only screen and (max-device-width: 1024px) {
  .image-1, .image-2, .image-3 {
    background-attachment: scroll;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console