Pen Settings

HTML

CSS

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

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

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.

HTML

              
                //cover w/ skrollr values (for example data-100 for styles at 100 pixels scroled)
.logocon(data-0='opacity: 1; display: flex', data-99='opacity: 0; display: none', data-100='display: none')
    .logo wave
.hint(data-0='bottom: 10vh', data-100='bottom: -25px') scroll down

//page contents below
.menu
  | wave
.content
  | Another take on the landing page cover: 
  a(href="https://codepen.io/Ovoce/pen/buIeE" target="_blank") cave
  |  Now with another stupid name...

              
            
!

CSS

              
                body
  overflow-x hidden
  overflow-style none //Hides IE scrollbars

.logocon 
  display flex
  justify-content center
  align-items center
  width 100vw
  height 100vh
  background hsl(0,80,50)
  animation color 30s linear infinite
  user-select none
  position absolute
  z-index 3

.menu
  position fixed
  z-index 2
  width 100vw
  height 50px
  background hsla(0,0,0,0.85)
  color darken(white,20%)
  text-align center
  line-height @height
  font 300 32px Comfortaa
    
a
  padding 5px 10px
  border 1px solid
  border-radius 30px
  font-family Comfortaa
  color #f39
  transition background .3s
    
  &:hover
    background #f39
    color white
    border 0

.logo
  font 300 150px Comfortaa
  color white
  cursor default

.hint
  position fixed
  z-index 4
  bottom 10vh
  width 100vw
  text-align center
  color alpha(white, 60%)
  font 300 30px Comfortaa


@keyframes color
  0%
    background hsl(0,80,50)
  25%
    background hsl(90,80,50)
  50%
    background hsl(180,80,50)
  75%
    background hsl(270,80,50)
  100%
    background hsl(360,80,50)

.content
  padding 30px
  position relative
  top 20vh //works fine in webkit/blink as well as IE (can't test FF)
  //transform translateY(20vh) //works, but probably stupid choice for this
  //margin-top 20vh // breaks the cover in webkit/blink
  height 200vh
  font 16px Ubuntu
  
              
            
!

JS

              
                skrollr.init()

$(".logocon").click(function(){
  $("html, body").animate({ scrollTop: 100 });
});

/* HEY THERE!
I use Internet Explorer 11. I like it for its speed, but its standards support lacks in some areas: I like to say "Make it work in IE, you're probably done."

Well, not this time, Ovi! In webkit/blink the whole thing gets nudged down 20vh declared in the .content class using margin-top...

I used "top" on the content div in place of "margin-top", now works the same way in IE as before, whereas in webkit/blink this fixes the issue. If you use FF, you can tell me in the comments if anything appears broken.
*/
              
            
!
999px

Console