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

+ 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

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

              
                <div class="container-fluid">
  <div class="navbar-fixed-top">
      <ul>
        <li><a href="#contact" class="" id="btn-contact"><h9>Contact</h9></a></li>
        <li><a href="#projects" class="" id="btn-projects"><h9>Projects</h9></a></li>
        <li><a href="#slider" class="" id="btn-slider"><h9>Slider</h9></a></li>
        <li><a href="#about" class="" id="btn-about"><h9>About</h9></a></li>
      </ul>
  </div>
  <div class="row">
    <div class="col-md-8 col-md-offset-2">
      <div class="main">
        <div class="about" id="about">
          <div class="row">
            <div class="col-md-8">
              <div class="about-info">
            <h1>My name is Adam Jacks, I have experience using, HTML, CSS, Javascript, JQuery, MySQL, and PHP for web development. I do this as a hobby and hope to use these skills as part of a job.</h1>
            <h10>_____________________</h10>
            <h1>On this webpage you will see my past projects which are linked to CodePen so you can see my code as well.</h1>
            </div>
          </div>
          <div class="col-md-2">
            <div class="about-img">
              <img class="about-img-img" src="https://scontent-lhr3-1.xx.fbcdn.net/v/t1.0-9/10632824_920155387997970_1165170726260986550_n.jpg?oh=dcc2f6beca20608ac366a2d39d040764&oe=581CFD2A" width=200px; height=200px;/>
              </div>
            </div>
          </div>
        </div>
        
        
        
  <div class="slider" id="slider">
    <a class="arrows left" id="arrow-left">
      <<</a>
    <div>
        <img src="http://atuwlnbob3rvynvja2v0lmnvbq00.g00.photobucket.com/g00/TU9SRVBIRVVTMiRodHRwOi8vaTUwLnBob3RvYnVja2V0LmNvbS9hbGJ1bXMvZjM0Ni9BZGFtX0phY2tzL2JYUlRtZEdfenBzbmt0Y21rcmQucG5n/$/$/$/$" id="img-1" class="images animated" />
        <img src="http://i50.photobucket.com/albums/f346/Adam_Jacks/nqWdC8B_zpshz6ocm3u.png" id="img-2" class="images animated" />
        <img src="http://i50.photobucket.com/albums/f346/Adam_Jacks/xAEhAF0_zpst7wxnytc.png" id="img-3" class="images animated" />
      </div>
        <a class="arrows right" id="arrow-right">>></a>
  </div>
</div>
      
      
      
        <div class="box" id="projects">
          <h2>Projects:</h2>
          
          <div class="row">
            <div class="proj well col-md-4 col-md-offset-1">
               <a href="https://s.codepen.io/AdamHJacks/debug/xOJppV"> <img src="http://atuwlnbob3rvynvja2v0lmnvbq00.g00.photobucket.com/g00/TU9SRVBIRVVTMiRodHRwOi8vaTUwLnBob3RvYnVja2V0LmNvbS9hbGJ1bXMvZjM0Ni9BZGFtX0phY2tzL2JYUlRtZEdfenBzbmt0Y21rcmQucG5n/$/$/$/$" class="proj-images img-responsive"/></a>
              
              <p>A local weather page using the Forecast.io API</p>
            </div>
            <div class="proj well col-md-4 col-md-offset-2">
             <a href="http://adam.mygamesonline.org/"> <img src="http://i50.photobucket.com/albums/f346/Adam_Jacks/nqWdC8B_zpshz6ocm3u.png" class="proj-images img-responsive"/></a>
              
              <p>A 'Zombie' Game using just a HTML5 canvas, JavaScript and jQuery</p>
            </div>
          </div>
          
          <div class="row">
            <div class="proj well col-md-4 col-md-offset-1">
              <a href="https://s.codepen.io/AdamHJacks/debug/rLKbQV"> <img src="http://i50.photobucket.com/albums/f346/Adam_Jacks/xAEhAF0_zpst7wxnytc.png" class="proj-images img-responsive"/></a>
              
              <p>Promodo Clock/Timer using JavaScript and jQuery.</p>
            </div>
            <div class="proj well col-md-4 col-md-offset-2">
              <img src="http://www.sourcecertain.com/img/Example.png" class="proj-images img-responsive"/>
              
              <p>Yet to be made</p>
            </div>
          </div>
          
          <div class="row">
            <div class="proj well col-md-4 col-md-offset-1">
              <img src="http://www.sourcecertain.com/img/Example.png" class="proj-images img-responsive"/>
              
              <p>Yet to be made</p>
            </div>
            <div class="proj well col-md-4 col-md-offset-2">
              <img src="http://www.sourcecertain.com/img/Example.png" class="proj-images img-responsive"/>
              
              <p>Yet to be made</p>
            </div>
          </div>
        </div>
      
      
      
      
        <div class="box" id="contact">
          <h2>Contact</h2>
          <div class="row">
            <div class="col-md-4 col-md-offset-4">
              <a href="mailto:adamjackswork@gmail.com"><img src="http://www.clker.com/cliparts/N/x/q/m/s/7/free-email-icon-hi.png" width=130px; height=100px;></a>
              <a href="https://www.facebook.com/adam.jacks.54"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/c2/F_icon.svg/2000px-F_icon.svg.png" width=130px; height=100px;></a>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                p {
  text-align: center;
  font-size: 20px;
}

h1 {
  font-size: 20px;
  color: white;
}

h2 {
  text-align: center;
  font-size: 40px;
  color: black;
}

h3 {
  text-align: center;
  font-size: 25px;
  color: black;
}

h9 {
  text-align: center;
  font-size: 35px;
  color: white;
}

h10 {
  font-size: 40px;
  color: white;
}

.center {
  text-align: center;
}

.container-fluid {
  background-color: #d9d9d9;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333;
}

li {
  float: right;
}

li a {
  display: block; 
  width: 100%; 
  padding: 10px; 
  border-left: 5px solid;
  border-right: 5px solid;
  position: relative; 
  z-index: 2;
  color: #444;
  box-sizing: border-box;  
  -moz-box-sizing: border-box;  
  -webkit-box-sizing: border-box; 
}

li:first-child a{ border-right: 10px solid #444; }
li:nth-child(4) a{ border-left: 10px solid #444; }

li a:after { 
  content: "";
  height: 100%; 
  left: 0; 
  top: 0; 
  width: 0px;  
  position: absolute; 
  transition: all 0.3s ease 0s; 
  -webkit-transition: all 0.3s ease 0s; 
  z-index: -1;
}

li a:hover {
  text-decoration: none;
}

li a:hover:after{ width: 100%;  background: #3498db;}

.nav {
  background-color: #333;
  height: 100;
}

.about {
  background-color: #b3b3b3;
  border: 2px solid #8c8c8c;
}

.about-info {
  margin: 150px 0px 60px 80px; 
}

.about-img {
  margin: 150px 0px 0px 0px;
}

.about-img-img {
  border-radius: 50%;
}

.slider {
  background-color: #f2f2f2;
  border: 2px solid #8c8c8c;
  position: relative;
  height: 460px;
}


.box {
  background-color: #f2f2f2;
  border: 2px solid #8c8c8c;
}

.images {
  position: absolute;
  top: 0;
  width: 100%;
  height: 457px;
}

a.arrows {
  font-family: Arial;
  position: absolute;
  top: 40%;
  z-index: 999;
  display: block;
  padding: 4% 3%;
  width: auto;
  height: auto;
  background: #2a2a2a;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  opacity: 0.8;
  cursor: pointer;
}

a.arrows:hover {
  opacity: 1;
  -webkit-transition: all 0.2s ease;
}

.right {
  right: 0;
}

.flip {
        -moz-transform: scaleX(-1);
        -o-transform: scaleX(-1);
        -webkit-transform: scaleX(-1);
        transform: scaleX(-1);
        filter: FlipH;
        -ms-filter: "FlipH";
}

.proj {
  height: 300px;
}

.proj-images {
  height: 200px;
}

.input-group-addon {
  color: #ff0000;
  background-color: #ffffff;
}

#contact {
  padding-bottom: 40px;
}
              
            
!

JS

              
                $(document).ready(function() {
  
  $("#btn-contact").click(function() {
    console.log("Contact");
 $(window).scrollTop($('#contact').offset().top);
  });
  
  $("#btn-project").click(function() {
    console.log("Projects");
 $(window).scrollTop($('#projects').offset().top);
  });
  
  $("#btn-slider").click(function() {
    console.log("Slider");
 $(window).scrollTop($('#slider').offset().top);
  });
  
  $("#btn-about").click(function() {
    console.log("About");
 $(window).scrollTop($('#about').offset().top);
  });
  
  
  
  
  
  
  var box = $('.slider');
  var images = $('.images');
  images.addClass('hidden');
  images.eq(0).addClass('active');
  images.eq(0).removeClass('hidden');
  var image = box.find('.active');
  console.log(image);
  
  var nextImage;
  var preImage;

  $("#arrow-right").click(function() {

    var image = box.find('.active');
    images.removeClass('active');
    image.removeClass('zoomInLeft');
    image.addClass('zoomOutRight');
    if (image.index() + 1 == images.length) {
      nextImage = images.eq(0);
    } else {
      nextImage = images.eq(image.index() + 1);
    }
    nextImage.removeClass('hidden');
    nextImage.addClass('active');
    nextImage.removeClass('zoomOutLeft zoomOutRight');
    nextImage.addClass('zoomInLeft');
    console.log(image);
  });
  
  $("#arrow-left").click(function() {

    var image = box.find('.active');
    images.removeClass('active');
    image.removeClass('zoomInRight');
    image.addClass('zoomOutLeft');
    
    if (image.index() - 1 < 0) {
      preImage = images.eq(2);
    } else {
      preImage = images.eq(image.index() - 1);
    }
    preImage.removeClass('hidden');
    preImage.addClass('active');
    preImage.removeClass('zoomOutLeft zoomOutRight');
    preImage.addClass('zoomInRight');
    console.log(image);
  });
});
              
            
!
999px

Console