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.

            
              <!DOCTYPE html>
<html>
<head>
<meta char-set="utf-8">
<title>Background Image Mask</title>
</head>
<body>
  <div class="scroll-down">
    <p>Scroll Down</p>
    <span>&#9759;</span>
  </div>
	<section class="text one">
		<h1>One Cute Kitten</h1>
		<p>Meatball capicola ball tip hamburger strip steak pancetta pork belly pastrami. Doner pig capicola short loin, brisket ham corned beef meatloaf jerky pancetta venison tenderloin. Ham hock brisket sirloin, cow ham filet mignon ground round. Tri-tip tongue strip steak prosciutto tail turducken pig swine boudin pork loin shank.</p>
	</section>
	<section class="photo kit1"></section>
	<section class="text">
		<h1>Three Cute Kittens</h1>
		<p>Bacon ipsum dolor sit amet pancetta bacon brisket, doner tri-tip biltong rump jowl jerky. Venison salami andouille pancetta. Shoulder ribeye andouille ground round pig flank, meatball rump frankfurter. Andouille tongue corned beef pig. Leberkas andouille salami pastrami t-bone ham short loin turducken ribeye kielbasa meatloaf chicken meatball. Chicken venison corned beef tenderloin prosciutto meatball. Jowl pork loin tongue swine shankle biltong pork.</p>
	</section>
	<section class="photo kit2"></section>
	<section class="text">
		<h1>One White Cute Kitten</h1>
		<p>Beef ball tip hamburger fatback, tongue chuck spare ribs pork brisket bacon venison capicola. Pig tri-tip boudin prosciutto corned beef, jowl t-bone. Turducken hamburger corned beef, sirloin filet mignon prosciutto bresaola pork loin pig leberkas ground round meatloaf pancetta strip steak. Leberkas corned beef pork belly meatloaf kielbasa, jerky sausage ham hock. Kielbasa turducken sirloin bresaola tenderloin salami leberkas fatback chicken ground round jowl tri-tip flank bacon. Tongue pork belly cow kielbasa chicken tri-tip.</p>
	</section>
 <section class="photo kit3"></section>
</body>
</html>
            
          
!
            
              @import compass

html
  background-color: #332244
body
  margin: 0
  padding: 0
  color: #FFDD99
.scroll-down
  width: 50px
  margin: 40px auto 0
  background-color: #AA7799
  border-radius: 1em
  text-align: center
  padding: 1em
  position: relative
  font-size: 1.2em
  line-height: .8
  span
    font-size: 4em
    color: rgba(51,34,68,0.3)
/*Styles for the Masking Image on Scroll*/
section
  display: block
  padding-top: 14em
.text
  width: 60%
  margin: 0 auto
.one
  padding-top: 0
.photo
  display: block
  background: url("http://placekitten.com/400/300") no-repeat fixed center center / cover  transparent
  height: 6em
.kit1
  background-image: url('http://placekitten.com/600/450')
.kit2
  background-image: url('http://placekitten.com/602/452')
.kity3
  background-image: url('http://placekitten.com/808/600')
            
          
!
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