45 captures
31 Jan 2014 - 20 Oct 2023
Mar APR May
15
2019 2020 2021
success
fail

About this capture

COLLECTED BY

Collection: GitHub Archive Program

TIMESTAMPS

The Wayback Machine - http://web.archive.org/web/20200415063347/https://codepen.io/andreasstorm/pen/pyjEh
 

Pen Settings




HTML CSS JS

Behavior Editor

HTML

Learn more · Versions



CSS

Learn more · Versions

Need an add-on?

CSS Base

Vendor Prefixing

We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).

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.

Powered by Algolia

If the stylesheet you link to has the file extension of a preprocessor, we'll attempt to process it before applying.

You can also link to another Pen here, and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.

Learn more

+ add another resource



JavaScript




About JavaScript Preprocessors

JavaScript preprocessors can help make authoring JavaScript easier and more convenient. For instance, CoffeeScript can help prevent easy-to-make mistakes and offer a cleaner syntax and Babel can bring ECMAScript 6 features to browsers that only support ECMAScript 5.

Learn more · Versions






Babel is required to process package imports. If you need a different preprocessor remove all packages first.


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.


Powered by Algolia

About External Resources

You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.

If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.

You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.

Learn more





+ add another resource




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





    Next Step Leave tour





















    HTML























                  
                    <div class='blurImg'>
      <div style="background-image: url('https://d262ilb51hltx0.cloudfront.net/fit/c/1600/1280/gradv/29/81/60/darken/25/1*4ncz3hLxmL8E_bUh-0z62w.jpeg')"></div>
      <div class='blur' style="background-image: url('https://d262ilb51hltx0.cloudfront.net/fit/c/1600/1280/gradv/29/81/40/darken/50/blur/50/1*4ncz3hLxmL8E_bUh-0z62w.jpeg')"></div>
    </div>
    <header>
      <div>
        <h1>
          Medium
        </h1>
        <p>
          Everyone’s stories and ideas
        </p>
        <a href='https://medium.com/' title='Medium'>Learn more</a>
      </div>
      <nav role='navigation'>
        <ul>
          <li>
            <a class='active' href='#'>Reading List</a>
          </li>
          <li>
            <a href='#'>Bookmarks</a>
          </li>
          <li>
            <a href='#'>Top 100</a>
          </li>
        </ul>
      </nav>
    </header>
    <div class='container'>
      <div></div>
    </div>
                  
                

    !







    CSS























                  
                    @import "nib"
    
    body
      font-size 14px
      font-family Sans-Serif
    
    *
      box-sizing border-box
    
    a
      text-decoration none
    
    .blurImg
      position relative
      width 100%
      height 440px
      z-index -1
      top 0
      left 0
      & > div
        position fixed
        width 100%
        height 440px
        background-repeat no-repeat
        background-size cover
        background-position center center
    
    .blur
      opacity 0
    
    header
      z-index 1
      position absolute
      top 0
      width 100%
      padding 0px 20px
      & > div
        max-width 600px
        margin 0 auto
        padding-top 150px
        height 380px
        text-align center
        color White
        a
          font-size 0.8em
          letter-spacing 0.08em
          color rgba(255,255,255,0.85)
          line-height 30px
          padding 7px 14px
          border 1px solid rgba(255,255,255,0.3)
          border-radius 2em
          transition all 0.3s ease
          &:hover
            background white
            color Gray
      p
        font-size 1.5em
        margin-bottom 0.7em
        font-family Times New Roman
    
    h1
      font-weight 800
      font-size 3.4em
      margin-bottom 0.2em
    
    nav
      max-width 600px
      margin 0 auto
      height 60px
      border-top 1px rgba(255,255,255,0.35) solid
      ul
        li
          display inline-block
          margin-right 20px
          a
            font-weight 800
            font-size 11px
            text-transform uppercase
            letter-spacing .2em
            color rgba(255,255,255,0.5)
            transition color 0.3s linear
            line-height 60px
            display block
            &.active
              box-shadow 0px -1px 0px white
    
    nav ul li a.active, nav ul li a:hover
      color white
    
    .container
      height 1300px
      background white
      z-index 1
      padding 0px 20px
      div
        max-width 600px
        margin 0 auto
        padding-top 40px
    
    
                  
                

    !







    JS























                  
                    #Image Credit - https://medium.com/
    
    #https://github.com/andreasstorm
    
    $(window).scroll ->
      oVal = ($(window).scrollTop() / 240)
      $(".blur").css "opacity", oVal
                  
                

    !





    999px










    Console

















    Editor Commands


    Ctrl Ctrl Space Autocomplete

    F Find

    G Find Next

    G Find Previous

    Opt F Find & Replace

    F Format Code

    [ Indent Code Right

    ] Indent Code Left

    Tab Auto Indent Code

    / Line Comment

    Opt / Block Comment

    Also see: Tab Triggers

    Editor Focus


    Alt Opt 1 HTML Editor

    Alt Opt 2 CSS Editor

    Alt Opt 3 JS Editor

    Alt Opt 4   Toggle Console

    Alt Opt 0 Preview

    Esc Exit currently focused editor

    Misc


    7 Re-run Preview

    8 Clear All Analyze Errors

    9 Open This Dialog

    0 Open Debug View

    HTML Specific


    A Wrap With...

    Pen Actions


    P Create New Pen

    S Save

    S Save As Private PRO

    I Info Panel (if owned)




    \\n 
    \\n 
    \\n
    \\n
    \\n 
    \\n 

    \\n Medium\\n 

    \\n 
    \\n Everyones stories and ideas\\n 
    \\n Learn more\\n 
    \\n \\n
    \\n

    \\n 
    \\n
    \",\"css\":\"@import \\\"nib\\\"\\n\\nbody\\n font-size 14px\\n font-family Sans-Serif\\n\\n*\\n box-sizing border-box\\n\\na\\n text-decoration none\\n\\n.blurImg\\n position relative\\n width 100%\\n height 440px\\n z-index -1\\n top 0\\n left 0\\n & > div\\n position fixed\\n width 100%\\n height 440px\\n background-repeat no-repeat\\n background-size cover\\n background-position center center\\n\\n.blur\\n opacity 0\\n\\nheader\\n z-index 1\\n position absolute\\n top 0\\n width 100%\\n padding 0px 20px\\n & > div\\n max-width 600px\\n margin 0 auto\\n padding-top 150px\\n height 380px\\n text-align center\\n color White\\n a\\n font-size 0.8em\\n letter-spacing 0.08em\\n color rgba(255,255,255,0.85)\\n line-height 30px\\n padding 7px 14px\\n border 1px solid rgba(255,255,255,0.3)\\n border-radius 2em\\n transition all 0.3s ease\\n &:hover\\n background white\\n color Gray\\n p\\n font-size 1.5em\\n margin-bottom 0.7em\\n font-family Times New Roman\\n\\nh1\\n font-weight 800\\n font-size 3.4em\\n margin-bottom 0.2em\\n\\nnav\\n max-width 600px\\n margin 0 auto\\n height 60px\\n border-top 1px rgba(255,255,255,0.35) solid\\n ul\\n li\\n display inline-block\\n margin-right 20px\\n a\\n font-weight 800\\n font-size 11px\\n text-transform uppercase\\n letter-spacing .2em\\n color rgba(255,255,255,0.5)\\n transition color 0.3s linear\\n line-height 60px\\n display block\\n &.active\\n box-shadow 0px -1px 0px white\\n\\nnav ul li a.active, nav ul li a:hover\\n color white\\n\\n.container\\n height 1300px\\n background white\\n z-index 1\\n padding 0px 20px\\n div\\n max-width 600px\\n margin 0 auto\\n padding-top 40px\\n\\n\",\"parent\":0,\"js\":\"#Image Credit - https://medium.com/\\n\\n#https://github.com/andreasstorm\\n\\n$(window).scroll ->\\n oVal = ($(window).scrollTop() / 240)\\n $(\\\".blur\\\").css \\\"opacity\\\", oVal\",\"html_pre_processor\":\"none\",\"css_pre_processor\":\"stylus\",\"js_pre_processor\":\"coffeescript\",\"html_classes\":\"\",\"css_starter\":\"reset\",\"css_prefix_free\":false,\"css_external\":\"\",\"js_library\":\"jquery\",\"js_modernizr\":false,\"js_external\":\"\",\"created_at\":\"2014-01-27T19:13:10.000Z\",\"updated_at\":\"2014-03-27T21:25:46.000Z\",\"session_hash\":\"91968ac195923e4edf1870475461ce62\",\"title\":\"Medium Scroll Effect\",\"description\":\"\",\"slug_hash\":\"pyjEh\",\"head\":\"\",\"private\":false,\"has_animation\":false,\"css_pre_processor_lib\":\"nib\",\"checksum\":17112534,\"screenshot_uuid\":\"28e70046-478a-4cfb-a4d5-e2fbd5f60d00\",\"team_id\":0,\"css_prefix\":\"neither\",\"template\":false,\"js_module\":null,\"pen_hash\":null,\"resource_urls\":null}","__profiled":{"id":42461,"hashid":"MQbyXV","name":"Andreas Storm","username":"andreasstorm","type":"user","is_team":false,"base_url":"/andreasstorm"},"__export_service_url":"https://codepen.io/api/export","__editor_config":{"id":"classic","editors":[{"id":"html","type":"html","name":"HTML","showEditor":true,"showSettings":true,"showProcessors":true,"embeds":{"showViewCompiled":true},"settings":[{"id":"processor","name":"HTML Preprocessor","type":"select","visible":true,"values":[{"id":"none","name":"None","value":"none","default":true},{"id":"haml","name":"Haml","value":"haml"},{"id":"markdown","name":"Markdown","value":"markdown"},{"id":"slim","name":"Slim","value":"slim"},{"id":"pug","name":"Pug","value":"pug"}]},{"id":"html_classes","name":"Add Class(es) to ","type":"input","placeholder":"e.g. single post post-1234","visible":true},{"id":"head","name":"Stuff for  ","type":"textarea","placeholder":"e.g. , ,