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

              
                <section class="hero">
  <div class="content">
    <div class="header">
      <h1>Simple Responsive Portfolio</h1>
    </div>
  </div>
</section>
<section class="about-myself">
  <div class="content">
    <h2>Hi !</h2>
    <p>I'm <span>name</span>.. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Facere, dicta. Veniam pariatur minima voluptas culpa rem. Suscipit veritatis vel non neque alias, molestiae id incidunt natus ipsum vero, quod aut qui sequi quis laudantium <span>architecto exercitationem</span> recusandae eius. Incidunt velit quasi debitis, commodi vero optio nesciunt perspiciatis quidem quos accusantium! Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius harum minima, ipsum animi. Provident quae hic, perspiciatis accusamus quaerat iure <span>tenetur</span> explicabo dicta quos aspernatur quis, delectus itaque vel.</p>
  </div>
</section>
<section class="experience">
  <div class="content">
    <h1>Experiences</h1>
    <ul>
      <li>
        <div class="experience-content hidden">
          <h2>Company</h2>
          <div class="experience-time">Jan - Jun 2016</div>
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias debitis praesentium itaque veniam dolorum cupiditate asperiores optio beatae, qui perferendis ipsam odit modi nemo natus corrupti neque quos distinctio facilis?</p>
        </div>
      </li>
      <li>
        <div class="experience-content hidden">
          <h2>Company</h2>
          <div class="experience-time">Jul - Dec 2015</div>
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Obcaecati quas, reiciendis quis sequi voluptatem consectetur adipisci accusamus hic vel vero ea ad iure! Natus, ipsum, enim aspernatur fugit voluptatibus similique?</p>
        </div>
      </li>
      <li>
        <div class="experience-content hidden">
          <h2>Company</h2>
          <div class="experience-time">Mar - Jun 2015</div>
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Obcaecati quas, reiciendis quis sequi voluptatem consectetur adipisci accusamus hic vel vero ea ad iure! Natus, ipsum, enim aspernatur fugit voluptatibus similique?</p>
        </div>
      </li>
    </ul>
  </div>
</section>
<section class="skills">
  <div class="content">
    <div class="development-wrapper">
      <h2 class="development-title">Skills</h2>
      <ul class="skills-bar-container">
        <li>
          <div class="progressbar-title">
            <h3>HTML5</h3>
            <span class="percent" id="html-pourcent"></span>
          </div>
          <div class="bar-container" data-percent="95">
            <span class="progressbar" id="progress-html"></span>
          </div>
        </li>
        <li>
          <div class="progressbar-title">
            <h3>CSS / SASS</h3>
            <span class="percent" id="css-pourcent"></span>
          </div>
          <div class="bar-container" data-percent="85">
            <span class="progressbar" id="progress-css"></span>
          </div>
        </li>
        <li>
          <div class="progressbar-title">
            <h3>JavaScript / jQuery</h3>
            <span class="percent" id="javascript-pourcent"></span>
          </div>
          <div class="bar-container" data-percent="80">
            <span class="progressbar" id="progress-javascript"></span>
          </div>
        </li>
        <li>
          <div class="progressbar-title">
            <h3>PHP</h3>
            <span class="percent" id="php-pourcent"></span>
          </div>
          <div class="bar-container" data-percent="65">
            <span class="progressbar" id="progress-php"></span>
          </div>
        </li>
        <li>
          <div class="progressbar-title">
            <h3>AngularJS</h3>
            <span class="percent" id="angular-pourcent"></span>
          </div>
          <div class="bar-container" data-percent="70">
            <span class="progressbar" id="progress-angular"></span>
          </div>
        </li>
      </ul>
    </div>
    <div class="tools-knowledge-wrapper">
      <div class="tools-wrapper">
        <h2 class="title">Tools</h2>
        <ul class="tools">
          <li>
            <i class="fa fa-check" aria-hidden="true"></i>
            Photoshop
          </li>
          <li>
            <i class="fa fa-check" aria-hidden="true"></i>
            Adobe Illustrator
          </li>
          <li>
            <i class="fa fa-check" aria-hidden="true"></i>
            Sublime text
          </li>
        </ul>
      </div>
      <div class="knowledge-wrapper">
        <h2 class="title">Knowledge</h2>
        <ul class="knowledge">
          <li>
            <i class="fa fa-check" aria-hidden="true"></i>
            Wireframing
          </li>
          <li>
            <i class="fa fa-check" aria-hidden="true"></i>
            Responsive design
          </li>
          <li>
            <i class="fa fa-check" aria-hidden="true"></i>
            ...
          </li>
        </ul>
      </div>
    </div>
    <div class="clear"></div>
  </div>
  <div class="clear"></div>
</section>
<section class="resume">
  <div class="content">
    <a href="#" target="_blank">
      <div class="btn-resume">
        <i class="fa fa-download fa-2x" aria-hidden="true"></i>
        <span>Download my resume<span>
      </div>
    </a>
  </div>
</section>
<section class="portfolio">
  <div class="content">
    
    <h1>Some works</h1>
    
    <div class="projects">
      
      <div class="project">
        <div class="project-image">
          <!-- Credit image : Unsplash - Harman Abiwardani -->
          <img src="https://source.unsplash.com/WLUHO9A_xik/" alt=""/>
        </div>
        <div class="project-title">
          <h2>Project #1</h2>
        </div>
        <div class="project-description">
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi asperiores odio libero, molestiae at suscipit totam sequi, delectus temporibus. Provident itaque illum animi cupiditate quaerat! Id inventore, excepturi sequi totam. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Maiores iure ex repudiandae, enim maxime.</p>
        </div>
      </div>
      <div class="project">
        <div class="project-image">
          <!-- Credit image : Unsplash - Patrick Hendry -->
          <img src="https://source.unsplash.com/jd0hS7Vhn_A" alt=""/>
        </div>
        <div class="project-title">
          <h2>Project #2</h2>
        </div>
        <div class="project-description">
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Excepturi magni consequatur dolores distinctio quod accusamus voluptatum obcaecati animi expedita rem odio explicabo veritatis voluptas ducimus voluptate earum laborum, qui maiores doloremque deserunt sapiente corporis et culpa, nihil fuga. Sit nemo maxime itaque maiores iure, similique ratione veritatis quidem nulla explicabo.</p>
        </div>
      </div>
      <div class="project">
        <div class="project-image">
          <!-- Credit image : Unsplash - Ken Cheung -->
          <img src="https://source.unsplash.com/KonWFWUaAuk/" alt=""/>
        </div>
        <div class="project-title">
          <h2>Project #3</h2>
        </div>
        <div class="project-description">
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi asperiores odio libero, molestiae at suscipit totam sequi, delectus temporibus. Provident itaque illum animi cupiditate quaerat! Id inventore, excepturi sequi totam. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Maiores iure ex repudiandae, enim maxime.</p>
        </div>
      </div>
    </div>
  </div>
</section>
<section class="contact">
  <div class="content">
    <ul class="socials">
      <li class="social">
        <a href="#" target="_blank" class="email">
          <i class="fa fa-envelope" aria-hidden="true"></i>
        </a>
      </li>
      <li class="social">
        <a href="#" target="_blank" class="twitter">
          <i class="fa fa-twitter" aria-hidden="true"></i>
        </a>
      </li>
      <li class="social">
        <a href="#" target="_blank" class="linkedin">
          <i class="fa fa-linkedin-square" aria-hidden="true"></i>
        </a>
      </li>
      <li class="social">
        <a href="#" target="_blank" class="codepen">
          <i class="fa fa-codepen" aria-hidden="true"></i>
        </a>
      </li>
    </ul>
    <div class="clear"></div>
  </div>
</section>
<section class="footer">
  <p>Made with <i class="fa fa-heart" aria-hidden="true"></i> by Arnaud</p>
</section>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=PT+Sans);

$main-font: 'PT Sans', sans-serif;

// Colors
$text-color: #444;
$title-color: #3c3c3c;
$bg-color: #f9f9f9;
$secondary-bg-color: #1a1a1a;

$progressbar-bg: #ececec;
$progressbar-color: #34495e;

*,
*:before,
*:after{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body{
  width: 100%;
  height: 100%;
}

body{
  color: $text-color;
  background: $bg-color;
  font-size: 16px;
  font-family: $main-font;
}

a{
  color: inherit;
  text-decoration: none;
}

section{
  position: relative;
  width: 100%;
}

/*##### HERO SECTION #####*/

.hero{
  height: 100%;
  /* Credit image : Unsplash - Luke Chesser */
  background: url('https://source.unsplash.com/a2NRu2Wxa2o/');
  background-size: cover;
  background-position: center;
  
  .content{
    background: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    
    .header{
      position: absolute;
      top: 55%;
      width: 100%;
      -webkit-transform: translate(0%, -50%);
      transform: translate(0%, -50%);
      text-align: center;
      opacity: 0;
      
      h1{
        color: #fff;
        font-size: 2.5em;
        text-shadow: 0px 2px 3px #2d2d2d;
      }
    }
  }
}

/*##### ABOUT MYSELF SECTION #####*/

.about-myself{
  padding: 50px 20px;
  
  .content{
    text-align: center;
    
    h2{
      color: #3d3d3d;
      font-size: 3em;
      margin-bottom: 20px;
      -webkit-transform: translateY(-50px) scale(0);
      transform: translateY(-50px) scale(0);
      -webkit-transition: transform .7s;
      -moz-transition: transform .7s;
      transition: transform .7s;  
    }
    
    .aboutTitleVisible{
      -webkit-transform: translateY(0px) scale(1);
      transform: translateX(0px) scale(1);
    }
    
    p{
      span{
        color: #c0392b;
        font-weight: bold;
      }
    }
  }
}

/*##### EXPERIENCE SECTION #####*/

.experience{
  background: $secondary-bg-color;
  padding: 50px 0;
  overflow-x: hidden;
  
  .content{
    text-align: center;
    
    h1{
      font-size: 2em;
      color: #fff;
    }
    
    ul{
      padding: 50px 0;
      list-style-type: none;

      li{
        background: $bg-color;
        position: relative;
        margin-left: 20px;
        width: 5px;
        padding-bottom: 40px;

        &:last-child{
          padding-bottom: 7px;
        }

        &:before{
          content: '';
          background: $secondary-bg-color;
          position: absolute;
          left: 50%;
          top: 0;
          -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
          width: 20px;
          height: 20px;
          border: 4px solid $bg-color;
        }

        .hidden {
          opacity: 0;
          margin-left: 10vw;
        }

        .experience-content{
          background: $bg-color; 
          position: relative;
          top: 7px;
          left: 48px;
          width: calc(100vw - 100px);
          padding: 20px;
          text-align: center;
          -webkit-border-radius: 0 5px 5px;
          -moz-border-radius: 0 5px 5px;
          border-radius: 0 5px 5px;

          h2{
            font-size: 1.5em;
            color: $title-color;
            padding-bottom: 10px;
          }

          .experience-time{
            color: #777;
            font-size: 1.1em;
            padding-bottom: 10px;
          }

          p{
            color: #1a1a1a;
            font-size: .95em;
          }

          &:before{
            content: '';
            background: $bg-color;
            position: absolute;
            top: 0;
            left: -35px;
            width: 35px;
            height: 5px;
          }
        }
      }
    }
  }
}

/*##### SKILLS SECTION #####*/

.skills{
  padding: 70px 20px;
  
  .content{
    
    .development-wrapper{
      
      .development-title{
        color: $title-color;
        font-size: 2em;
        text-align: center;
        margin-bottom: 20px;
      }
      
      .skills-bar-container{
        position: relative;
        width: 100%;
        list-style-type: none;
        
        li{
          width: 100%;
          margin-bottom: 20px;
          
          .progressbar-title{
            color: $title-color;
            margin-bottom: 5px;

            h3{
              display: inline-block;
            }
            
            .percent{
              position: absolute;
              right: 20px;
              font-size: 1.1em;
            }
          }
          
          .bar-container{
            background: $progressbar-bg;
            position: relative;
            width: 100%;
            height: 10px;

            .progressbar{
              background: $progressbar-color;
              position:absolute;
              width:0%;
              height: 100%;
            }
          }
        }
      }
    }
    
    .tools-knowledge-wrapper{
      width: 100%;
      
      .tools-wrapper,
      .knowledge-wrapper{
        position: relative;
        padding: 20px 0;
        widht: 100%;
        text-align:center;

        .title{
          color: $title-color;
          font-size: 2em;
          margin-bottom: 10px;
        }

        ul{
          list-style-type: none;
          margin-left: 40px;

          li{
            color: $text-color;
            font-weight: bold;
            font-size: 1.1em;
            text-align: left;

            i{
              color: #27ae60;
            }
          }
        }
      }    
    }
  }
}

/*##### RESUME SECTION #####*/

.resume{
  background: $secondary-bg-color;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  .content{
    background: rgba(0,0,0,0.3);
    padding: 50px 0;
    text-align: center;
    
    a{
      color: #fff;
      text-transform: uppercase;
      
      .btn-resume{
        display: inline-block;
        font-size: 1.1em;
        padding: 20px;
        margin: 0 15px;
        background: rgba(255,255,255,0.2);
        position:relative;
        border:2px solid #fff;
        border-radius: 5px;
        overflow: hidden;
        
        span{
          -webkit-transition: opacity 1.2s;
          -moz-transition: opacity 1.2s;
          transition: opacity 1.2s;
        }
        
        i{
          color:#fff;
          position:absolute;
          padding: 20px 0;
          top:-80px;
          width:100%;
          left:0;
          -webkit-transition: top .5s;
          -moz-transition: top .5s;
          transition: top .5s;
        }
        
        &:hover {
          span{
            opacity: 0;
            -webkit-transition: opacity .4s;
            -moz-transition: opacity .4s;
            transition: opacity .4s;
          }
          i {
            top:0;
          }
        }
      }
    }
  }
}

/*##### PORTFOLIO SECTION #####*/

.portfolio{
  background: $bg-color;
  padding: 80px 0;
  
  .content{
    text-align: center;
    
    h1{
      color: $title-color;
      font-size: 2em;
      margin-bottom: 50px;
    }

    .projects{
      width: 100%;

      .project{
        color: #fff;
        position: relative;
        width: 80%;
        margin-left: 10%;
        margin-right: 10%;
        margin-bottom: 10%;
        overflow: hidden;
        
        &:last-child{
          margin-bottom: 0;
        }
        
        .project-image img{
          width: 100%;
        }
        .project-title{
          color: $title-color;
          padding: 10px 0;
        }
        .project-description{
          color: $text-color;
        }
      }
    }
  }
}

/*##### CONTACT SECTION #####*/

.contact{
  padding: 30px 0;
  
  .socials{
    list-style-type: none;
    width: 100%;
    
    .social{
      width: 25%;
      float: left;
      text-align: center;
      
      a{
        color: #3d3d3d;
        font-size: 1.5em;
        -webkit-transition: color .3s;
        -moz-transition: color .3s;
        transition: color .3s;
      }
      .email:hover{color:#c8a028;}
      .twitter:hover{color:#57AEE7;}
      .linkedin:hover{color:#0177B5;}
      .codepen:hover{color:#707070;}
    }
  }
  .clear{
    clear:both;
  }
}


.footer{
  padding: 25px 0;
  text-align: center;
  
  p{
    color: #777;
    font-size: 1.1em;
  }
  
  i{
    color: #e74c3c;
  }
}



/* ############################
        RESPONSIVE
############################### */

@media screen and (min-width: 480px) {
  .skills .content{
    
    .tools-knowledge-wrapper{
      
      .tools-wrapper,
      .knowledge-wrapper{
        width: 50%;
        float: left;
        padding: 0;

        ul{
          margin-left: 0;
        }
      }
    }
    .clear{
      clear:both;
    }
  }
}

@media screen and (min-width: 640px) {
  
  .about-myself{
    padding: 100px 40px;
  }
  
  .skills{
    padding-left: 0;
    padding-right: 0;
    
    .content{

      .development-wrapper{
        width: 600px;
        margin: auto;
        margin-bottom: 50px;
      }

      .tools-knowledge-wrapper{
        width: 600px;
        margin: auto;
      }
    }
  }
  
  .contact{
    .content{
      .socials{
        width: 600px;
        margin: auto;
      }
    }
  }

}

@media screen and (min-width: 960px) {
  
  .experience{
    .content{
      ul{
        li{
          margin: 0 auto;
          
          .experience-content{
            width: 40vw;
          }
          
          &:nth-child(odd) .experience-content {
            left: 63px;
          }
          &:nth-child(odd) .experience-content:before {
            left: -50px;
            width: 50px;
          }
          &:nth-child(even) .experience-content {
            left: calc(-40vw - 57px);
            -webkit-border-radius: 5px 0px 5px 5px;
            -moz-border-radius: 5px 0px 5px 5px;
            border-radius: 5px 0px 5px 5px;
          }
          &:nth-child(even) .experience-content:before {
            left: auto;
            right: -50px;
            width: 50px;
          }
          &:nth-child(odd) .hidden{
            margin-left: 10vw;
          }
          &:nth-child(even) .hidden{
            margin-left: -10vw;
          }
        }
      }
    }
  }
  
  .skills{
    padding-left: 50px;
    padding-right: 50px;
    
    .content{
      max-width: 1100px;
      margin: auto;
      
      .development-wrapper,
      .tools-knowledge-wrapper{
        float: left;
      }
      
      .development-wrapper{
        margin-bottom: 0;
        width: 60%;
      }
      
      .tools-knowledge-wrapper{
        width: 40%;
        margin-top: 60px;
        
        .tools-wrapper,
        .knowledge-wrapper{
          float: none;
          margin: auto;
        }
        
        .tools-wrapper{
          margin-bottom: 30px;
        }
      }
    }
  }
  
  .portfolio{
    .content{
      .projects{
        .project{
          position: relative;
          margin: auto;
          margin-bottom: 3%;
          width: 680px;
          height: 450px;
          overflow: hidden;
          
          &:hover .project-image{
            -webkit-transform: scale(0.5);
            transform: scale(0.5);
          }
          
          &:hover .project-title,
          &:hover .project-description{
            opacity: 1;
          }
          
          .project-image{
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            -webkit-transition: transform .5s ease;
            transition: transform .5s ease; 
            -webkit-transform-origin: left top;
            transform-origin: left top;
            z-index: 3;
            overflow: hidden;

            img{
              width: 100%;
              height: auto;
              min-height: 100%;
              min-width: 100%;
            }
          }
          .project-title,
          .project-description{
            position: absolute;
            height: 50%;
            opacity: 0;
            -webkit-transition: opacity .3s linear;
            transition: opacity .3s linear; 
            overflow: hidden;
          }

          .project-title{
            width: 50%;
            top: 0;
            right: 0;
            padding: 10px;
            text-align: center;
            display:table;

            h2{
              font-size: 2em;
              text-decoration: underline;
              display: table-cell;
              vertical-align: middle;
            }
          }

          .project-description{
            width: 100%;
            top: 50%;
            left: 0;
            padding: 25px 10px;
            text-align: left;
          }
        }
      }
    }
  }
  
}
              
            
!

JS

              
                $( document ).ready(function() {
  // Main variables
    var $aboutTitle = $('.about-myself .content h2');
    var $developmentWrapper = $('.development-wrapper');
    var developmentIsVisible = false;


  /* ####### HERO SECTION ####### */

  $('.hero .content .header').delay(500).animate({
    'opacity':'1',
    'top': '50%'
  },1000);


  $(window).scroll( function(){

    var bottom_of_window = $(window).scrollTop() + $(window).height();

    /* ##### ABOUT MYSELF SECTION #### */
    if( bottom_of_window > ($aboutTitle.offset().top + $aboutTitle.outerHeight())){
      $('.about-myself .content h2').addClass('aboutTitleVisible');
    } 
  /* ##### EXPERIENCE SECTION #### */

      // Check the location of each element hidden */
      $('.experience .content .hidden').each( function(i){

          var bottom_of_object = $(this).offset().top + $(this).outerHeight();

          /* If the object is completely visible in the window, fadeIn it */
          if( bottom_of_window > bottom_of_object ){

            $(this).animate({
              'opacity':'1',
              'margin-left': '0'
            },600);
          }
      });

  /*###### SKILLS SECTION ######*/

    var middle_of_developmentWrapper = $developmentWrapper.offset().top + $developmentWrapper.outerHeight()/2;

    if((bottom_of_window > middle_of_developmentWrapper)&& (developmentIsVisible == false)){

      $('.skills-bar-container li').each( function(){

        var $barContainer = $(this).find('.bar-container');
        var dataPercent = parseInt($barContainer.data('percent'));
        var elem = $(this).find('.progressbar');
        var percent = $(this).find('.percent');
        var width = 0;

        var id = setInterval(frame, 15);

        function frame() {
          if (width >= dataPercent) {
              clearInterval(id);
          } else {
            width++;
            elem.css("width", width+"%");
            percent.html(width+" %");
          }
        }
      });
      developmentIsVisible = true;
    }
  }); // -- End window scroll --
});
              
            
!
999px

Console