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.


  h1 Scrolling cubic effect
  h2 wich is kinda 3d
  span Scroll down to see the effect
  span Wow! That was so cool, lemme scroll up now


                $orange: hsl(45, 100, 50)

  background: hsl(0, 0, 20)
  font-family: sans-serif
  font-weight: 400
  -webkit-perspective: 800px
  perspective: 800px

h1, h2
  position: absolute
  left: 50%
  transform: translateX(-50%)
  color: hsl(0, 0, 20)
  font-family: sans-serif
  font-weight: 600
  text-transform: uppercase
  letter-spacing: 2px
  top: 24px
  font-size: 12px
  top: 44px
  font-size: 10px
  opacity: 0.7
  position: relative
  width: 100%
  min-height: 100vh
    position: absolute
    display: inline-block
    top: 50%
    left: 50%
    -webkit-transform: translate(-50%, -50%)
    transform: translate(-50%, -50%)
    border-radius: 3px
    padding: 10px
    font-size: 11px
    font-weight: 600
    text-transform: uppercase
    letter-spacing: 1px
  background: $orange
  -webkit-transform-origin: 50% 100%
  transform-origin: 50% 100%
    background: darken($orange, 5%)
    color: darken($orange, 30%)

  background: hsl(0, 0, 100)
  -webkit-transform-origin: 50% 0%
  transform-origin: 50% 0%
    background: hsl(0, 0, 95)
    color: hsl(0, 0, 50)


                function rotateScenes(){
  var scroll = window.pageYOffset,
      relPos = scroll / height,
      angle = 90 * relPos;
  if(scroll >= height){ = "rotateX(90deg)"; = "rotateX(0deg)";
  } = "rotateX(" + (angle) + "deg)"; = "rotateX(-" + (90 - angle) + "deg)";

var section1 = document.querySelector("#top"),
    section2 = document.querySelector("#content"),
    height = window.innerHeight;
window.addEventListener("scroll", rotateScenes);