Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

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

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

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.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:

Screenshot

Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                <!DOCTYPE HTML>
<html>
<head>
    <title>Shaun David Kelly | Front End Developer</title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="css/style.css" rel="stylesheet" media="screen">
    <script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
    <script src="javascript/expand.js"></script>
    <link href="https://fonts.googleapis.com/css?family=Lato:100,300,300italic,400,400italic,900,900italic" rel="stylesheet" type="text/css">
</head>
<body>
        <div class="container">

        <h2 class="heading">SDK <span> FRONT END DEVELOPER</span></h2>

        <div id="about" class="section collapsed">
          <p class="div_header">ABOUT</p class="div_header">
          <p class="aboutMe">Hey! Im Shaun, a self taught web design &amp; developer from Birmingham, West Midlands. Thanks for taking the time to check out my portfolio! Feel free to browse through my work and explore my vision of simplicity. I am currently seeking employment as a Junior Web Designer/Developer.</p>
        </div>

        <div id="Portfolio" class="section collapsed">
        <p class="div_header">PORTFOLIO</p class="div_header">
            <p class="portfolioContent">Under Construction! Coming Soon!</p>
        </div>

        <div id="Contact" class="section collapsed">
        <p class="div_header">CONTACT</p class="div_header">
            <p class="contactDetails">Shaundavidkelly@gmail.com</p>
        </div>

    </div>
</body>
</html>
              
            
!

CSS

              
                body, html {
    width: 960px;
    margin: 0 auto;
    background-color: #353535;
}

.container {
    margin-top: 70px;
    padding-bottom: 170px;
}

a {
    text-decoration: none;
}

/*------Heading------*/

.heading {
    font-family: "Lato";
    color: #fff;
    font-size: 30px;
}

span {
    color: #808080;
    font-size: 18px;
    font-family: tahoma;
}

/*All Divs
///////////////////////////////*/

.section {
    background-color: #555555;
    padding-left: 10px;
    font-family: "Lato";
    font-weight: bold;
    color: #303030;
    transition: all 1.3s ease;
    width: 960px;
    height: 150px;
    margin-bottom: 7px;
}

.div_header {
    font-size: 30px;
    display: inline-block;
    margin-top: 7px;
}

.expanded {
    height:550px;
}

.collapsed {
    height: 150px;
}

/*------About Div------*/

#about {
    -webkit-border-top-right-radius: 30px;
    -moz-border-top-right-radius: 30px;
    border-left: 8px #A625FF solid;
}

#about:hover {
    background-color: #A625FF;
    color: #000;
}

.aboutMe {
    padding: 20px;
    font-size: 22px;
    color: #252525;

    position: relative;
    z-index: 10;
}

/*------Portfolio Div------*/

#Portfolio {
    border-left: 8px #FFB93F solid;
}

#Portfolio:hover {
    background-color: #FFB93F;
    color: #000;
}

/*------Contact Div------*/

#Contact {
    border-left: 8px #09CC5C solid;
}

#Contact:hover {
    background-color: #09CC5C;
    color: #000;
}
              
            
!

JS

              
                //this is necessary at the top of your jquery doc to tell the script when to load, which in this case, is once the DOCUMENT (your webpage) is READY
$(document).ready(function(){

    //hide the .aboutMe paragraph when the page first loads
    $(".aboutMe").hide();

    //listen for anything with a class of .section to be clicked, then run the code within
    $(".section").click(function(){

        //check to see if THIS div (the div that was clicked) has a class of .expanded...
        if($(this).hasClass("expanded")) {
            //...and then if it DOES have the class .expanded, first REMOVE that class and then ADD the class .collapsed...
            $(this).removeClass("expanded").addClass("collapsed");
            //...and then check to see if the div is the one with the ID of #about...
            if($(this).attr("id") == "about") {
                //...and then if it DOES, make the .aboutMe paragraph inside fade out...
                $(".aboutMe").fadeOut("slow");
            }
        } else {//if THIS div (the div that was clicked) does NOT has a class of .expanded, then...
            //...REMOVE the class .collapsed, and then ADD the class .expanded...
            $(this).removeClass("collapsed").addClass("expanded");
            //...and then check to see if the div is the one with the ID of #about...
            if($(this).attr("id") == "about") {
                //...and then if it DOES, make the .aboutMe paragraph inside fade in...
                $(".aboutMe").fadeIn("slow");
            }
        }

    });

});
              
            
!
999px
Why did the programmer quit her job? She didn't get arrays.

Console