cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

            
              #fullpage
  .section.one 
    h1 Here's a great
    h2 tagline to read
  .section.two
    h1 Oh look, another phrase
    h2 to stand out
  .section.three
    h1 Finally, this is the
    h2 last slide
            
          
!
            
              /* Variable definition */
$easeInOutQuart: cubic-bezier(0.770, 0.000, 0.175, 1.000);

/* Pen's SCSS */
body {
//  font-family: ;
  background: white url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/86637/sky.jpeg) no-repeat center 0% / cover;
  transition: background-position .3s ease-in-out;
  
  &.fp-viewing-0 {
    background-position: center 0%;
  }
  
  &.fp-viewing-1 {
    background-position: center 50%;
  }
  
  &.fp-viewing-2 {
    background-position: center 100%;
  }
}

.one,
.three {
  background: linear-gradient(-45deg, transparent 25%, white 25%, white 75%, transparent 75%, transparent 100%);
}

.two {
  background: linear-gradient(45deg, transparent 25%, white 25%, white 75%, transparent 75%, transparent 100%);
  text-align: right;
}

h1,
h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 58px;
  max-width: 830px;
  padding: 0 15px;
  margin: 0 auto;
  height: 64px;
  overflow: hidden;
  line-height: 3.5;
  transition: line-height .85s $easeInOutQuart;
}

h1 {
  font-weight: 100;
  transition-delay: .3s;
}

h2 {
  margin-top: -6px;
  font-weight: 300;
  transition-delay: .8s;
}

.section.active {
  h1,
  h2 {
    line-height: 1;
  }
}
            
          
!
999px
Loading ..................

Console