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

+ 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

              
                <!-- Navigation Bar -->
<div id="nav-wrap">
	<nav class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="#"><span class="nav-text">Gabriel Alexandre</span></a>
			</div>
		
			<div class="collapse navbar-collapse" id="navbar">
				<ul class="nav navbar-nav navbar-right">
					<li><a href="#about"><span class="nav-btn">About</span></a></li>
					<li><a href="#portfolio"><span class="nav-btn">Portfolio</span></a></li>
					<li><a href="#connect"><span class="nav-btn">Connect</span></a></li>
				</ul>
			</div>
		</div>
	</nav>
</div>

<!-- About Section -->
<div class="container-fluid">
	<div class="row" id="about">
		<div id="transparency">
			<div class="intro-text" id="about-text">
				<p class="text-center">I am a Computer Science Student with a focus in Web and Game Development.</p>
				<p class="text-center">Right now I am an exchange student at Northern Virginia Community College.</p>
				<hr>
				<h1 class="text-center">Web & Game Developer</h1>
			</div>
		</div>
	</div>
</div>

<div class="bar">
</div>

<!-- Portfolio Section -->
<div class="container-fluid">
	<div class="row" id="portfolio">
		<h1 class="text-center"><b>Portfolio</b></h1>
		<hr>
		<div id="portfolio-style">
			
			<div class="col-md-6">
				<div class="hovereffect">
        	<img class="img-responsive portfolio-img" src="https://s4.postimg.org/tq30r2del/ganymede.jpg" alt="Ganymede">
        	<div class="overlay">
           	<h2>Ganymede</h2>
           	<a class="info" href="https://www.souking.com.br/item/ganymede?___store=en" target="#blank">A game developed in Unity with procedural generated elements</a>
        	</div>
    		</div>
				<a href="https://www.souking.com.br/item/ganymede?___store=en" target="#blank"><h3 class="text-center portfolio-caption"><b>Ganymede</b></h3></a>
			</div>
			
			<div class="col-md-6">
				<div class="hovereffect">
						<img class="img-responsive portfolio-img" src="https://s4.postimg.org/6pwdeqfkt/margaret.png" alt="Margaret">
						<div class="overlay">
							<h2>Margaret Hamilton's Tribute</h2>
							<a class="info" href="https://codepen.io/gabrielshaad/full/eJoeEp/" target="#blank">A page created in tribute to NASA's Apollo 11 lead engineer</a>
						</div>
					</div>
					<a href="https://codepen.io/gabrielshaad/full/eJoeEp/" target="#blank"><h3 class="text-center portfolio-caption"><b>Margaret Hamilton's Tribute</b></h3></a>
				</div>
			</div>
		
		</div>
	</div>
</div>

<div class="bar">
</div>

<!-- Connect Section -->
<div class="container-fluid">
	<div class="row" id="connect">
		<h1 class="text-center"><b>Connect</b></h1>
		<hr>
		
				<div class="col-sm-6 col-sm-offset-3 col-md-8 col-md-offset-4">
					<ul class="icons">
						<li><a href="https://www.facebook.com/gabriel.shaad" target="#blank"><i class="fa fa-facebook"></i></a></li>
						<li><a href="https://twitter.com/gabsalima" target="#blank"><i class="fa fa-twitter"></i></a></li>
						<li><a href="https://br.linkedin.com/in/gabrielalexandre" target="#blank"><i class="fa fa-linkedin"></i></a></li>
						<li><a href="https://github.com/GabrielShaad" target="#blank"><i class="fa fa-github"></i></a></li>
					</ul>
				</div>
		
	</div>
</div>

<!-- Footer -->
<div class="container-fluid">
	<div class="row" id="footer">
		<div class="col-xs-12 col-md-12 col-lg-12">
			<p class="text-center">Made with <i class="fa fa-book" aria-hidden="true"></i> and <i class="fa fa-coffee" aria-hidden="true"></i> by Gabriel Alexandre</p>
			<p class="text-center"><i class="fa fa-copyright" aria-hidden="true"></i> 2016 All Rights Reserved</p>
		</div>
	</div>
</div>
              
            
!

CSS

              
                body {
  font-family: 'Cairo', sans-serif;
	padding-top: 50px;
	background-color: #EEE;
}

.navbar-brand {
  float: left;
  height: 50px;
	padding: 18px 15px;
}

.navbar {
  background: #4691FF;
}

.nav-text {
  color: white;
  font-size: 29px;
}

.nav-btn {
  color: #A2D4FF;
  font-size: 20px;
  border-left: 2px solid white;
  padding-left: 5px;
  transition: color 1s, border-left 1s;
}

.nav-btn:hover {
  color: white;
  border-left: solid 2px black;
}

.navbar-default .navbar-toggle .icon-bar {
	box-shadow: inset 0 0 0 1px #d7d7d7;
} 

.navbar-default .navbar-toggle:hover .icon-bar{
	background-color: black;
}

.navbar-default .navbar-toggle:hover {
	background-color: white;
}

ul > li {
	padding-top: 5px;
	display-block: inline;
	float: left;
	margin: 0 auto;
}

#about {
	padding: 19% 0px 19% 0px;
	background: linear-gradient(rgba(0,0,0, .7), rgba(0,0,0,.7)), url("https://s4.postimg.io/fvub39ql9/image.jpg") no-repeat left top;
	background-size: cover;
	font-size: 2em;
	color: white;
}

@media (min-width: 1450px) {
	#about {
		font-size: 3em;
	}
}

hr { 
  border : 0;
  height: 1px; 
	width: 50%;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
	background-color: white;
}

.bar {
	height: 15px;
	background-color: #4691FF;
}

.portfolio-img {
	border-radius: 15px;
	border-style: solid;
	border-width: 2px;
	border-color: #4691FF;
	display: block;
	margin: auto;
}

.portfolio-caption {
	padding-bottom: 50px;
	font-size: 2em;
}

#portfolio-style {
	padding: 40px 50px 40px 50px;
}

/* Images Description Animation*/
.hovereffect {
  width: 100%;
  height: 100%;
  float: left;
  overflow: hidden;
  position: relative;
  text-align: center;
  cursor: default;
}

.hovereffect .overlay {
  position: absolute;
  overflow: hidden;
  width: 80%;
  height: 80%;
  left: 10%;
  top: 10%;
  border-bottom: 1px solid #FFF;
  border-top: 1px solid #FFF;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
  -webkit-transform: scale(0,1);
  -ms-transform: scale(0,1);
  transform: scale(0,1);
}

.hovereffect img {
  display: block;
  position: relative;
  -webkit-transition: all 0.35s;
  transition: all 0.35s;
}

.hovereffect h2 {
  text-transform: uppercase;
  text-align: center;
  position: relative;
  font-size: 2em;
  background-color: transparent;
  color: #FFF;
  padding: 1em 0;
  opacity: 0;
  filter: alpha(opacity=0);
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
  -webkit-transform: translate3d(0,-100%,0);
  transform: translate3d(0,-100%,0);
}

.hovereffect a, hovereffect p {
  color: #FFF;
  padding: 1em 0;
  opacity: 0;
	font-size: 2em;
  filter: alpha(opacity=0);
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
  -webkit-transform: translate3d(0,100%,0);
  transform: translate3d(0,100%,0);
}

@media (min-width: 600px) {
	.hovereffect:hover .overlay {
  opacity: 1;
  filter: alpha(opacity=100);
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
	}

	.hovereffect:hover img {
		filter: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg"><filter id="filter"><feComponentTransfer color-interpolation-filters="sRGB"><feFuncR type="linear" slope="0.6" /><feFuncG type="linear" slope="0.6" /><feFuncB type="linear" slope="0.6" /></feComponentTransfer></filter></svg>#filter');
		filter: brightness(0.6);
		-webkit-filter: brightness(0.6);
	}

	.hovereffect:hover a, .hovereffect:hover p, .hovereffect:hover h2 {
		opacity: 1;
		filter: alpha(opacity=100);
		-webkit-transform: translate3d(0,0,0);
		transform: translate3d(0,0,0);
	}
}

#connect {
	background: radial-gradient(ellipse at top, #294CA1 1%,#4a525d 99%);
	color: white;
	padding-bottom: 50px
}

/* Contact Form */
#contact-wrap {
  font-size:16px;
  font-weight:300;
	overflow:auto; 
	float:left;
}

#contact-area {
  margin-left:3px;
  padding:20px;
}

#contact-area input, #contact-area textarea {
	padding: 5px;
	width: 100%;
  font-size:14px;
  font-weight:300;
  background-color:transparent;
  border-top: 1px solid transparent;
  border-left: 1px solid transparent;
  border-bottom: 1px solid #fff;
  border-right: 1px solid transparent;
  margin-bottom: 15px;
}

#contact-area textarea {
	height: 150px;
  background-color:transparent;
  border-top: 1px solid transparent;
  border-left: 1px solid transparent;
  border-bottom: 1px solid #fff;
  border-right: 1px solid transparent; 
}

#contact-area textarea:focus, #contact-area input:focus {
	background-color: #333;
  border-top: 1px solid transparent;
  border-left: 1px solid transparent;
  border-bottom: 1px solid #fff;
  border-right: 1px solid transparent;
}

#contact-area input.submit-button {
  font-size: 12px;
  font-weight: 300;
  text-transform: uppercase;
	width: 100px;
	float: left;
  background-color: transparent;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-bottom: 1px solid #fff;
  border-right: 1px solid #fff;
	transition: all 0.1s ease-in-out;
}

#contact-area input.submit-button:hover {
  color:#fff;
  background-color:#333;
}

label {
	float: left;
	text-align: left;
	margin-right: 16px;
	width: 100px;
	padding-top: 5px;
  font-size:18px;
  font-weight:300;
}

::-webkit-input-placeholder {
   color: white;
}

/* Social Buttons */
#social-position {
	padding-top: 50px;
}

.icons li {
  display:inline-block; 
  margin: 0 4px;
}

.icons i  {
    font-size: 24px;
    height: 64px;
    line-height: 64px;
    text-align: center;
    width: 64px;
    border-radius: 100%;
    color:#fff;
    box-shadow: inset 0 0 0 1px #d7d7d7;
    position: relative;
    -moz-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    -webkit-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

.icons i:hover, .icons i:focus {    
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
  -webkit-box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
  -moz-transform: rotate(5deg) scale(1.1);
    -ms-transform: rotate(5deg) scale(1.1);
    -webkit-transform: rotate(5deg) scale(1.1);
    transform: rotate(5deg) scale(1.1);
  /*fallback*/
  background-image: -webkit-linear-gradient(left, #2caab3 0%, #2c8cb3 100%);
  background-image: -moz-linear-gradient(left, #2caab3 0%, #2c8cb3 100%);
  background-image: -o-linear-gradient(left, #2caab3 0%, #2c8cb3 100%);
  background-image: linear-gradient(to right, #2caab3 0%, #2c8cb3 100%);
  background-image: -webkit-linear-gradient(90deg, #2caab3 0%, #2c8cb3 100%);
  background-image: -ms-linear-gradient(90deg, #2caab3 0%, #2c8cb3 100%);
}

.icons .fa-twitter:hover, .icons .fa-twitter:focus {    
  background-image: -webkit-linear-gradient(left, #357FC4 0%, #2c8cb3 100%);
  background-image: -moz-linear-gradient(left, #357FC4 0%, #2c8cb3 100%);
  background-image: -o-linear-gradient(left, #357FC4 0%, #2c8cb3 100%);
  background-image: linear-gradient(to right, #357FC4 0%, #2c8cb3 100%);
  background-image: -webkit-linear-gradient(90deg, #357FC4 0%, #2c8cb3 100%);
  background-image: -ms-linear-gradient(90deg, #357FC4 0%, #2c8cb3 100%);
}

.icons .fa-facebook:hover, .icons .fa-facebook:focus {    
  background-image: -webkit-linear-gradient(left, #2D4486  0%, #34495e 100%);
  background-image: -moz-linear-gradient(left, #2D4486  0%, #34495e 100%);
  background-image: -o-linear-gradient(left, #2D4486  0%, #34495e 100%);
  background-image: linear-gradient(to right, #2D4486  0%, #34495e 100%);
  background-image: -webkit-linear-gradient(90deg, #2D4486  0%, #34495e 100%);
  background-image: -ms-linear-gradient(90deg, #2D4486  0%, #34495e 100%);
}

.icons .fa-linkedin:hover, .icons .fa-linkedin:focus {    
  background-image: -webkit-linear-gradient(left, #0C63A6 0%, #2D4486 100%);
  background-image: -moz-linear-gradient(left, #0C63A6 0%, #2D4486 100%);
  background-image: -o-linear-gradient(left, #0C63A6  0%, #2D4486 100%);
  background-image: linear-gradient(to right, #0C63A6  0%, #2D4486 100%);
  background-image: -webkit-linear-gradient(90deg, #0C63A6 0%, #2D4486  100%);
  background-image: -ms-linear-gradient(90deg, #0C63A6 0%, #2D4486 100%);
}

.icons .fa-github:hover, .icons .fa-github:focus {    
  background-image: -webkit-linear-gradient(left, #FFF 0%, #323232 100%);
  background-image: -moz-linear-gradient(left, #FFF 0%, #323232 100%);
  background-image: -o-linear-gradient(left, #FFF  0%, #323232 100%);
  background-image: linear-gradient(to right, #FFF  0%, #323232 100%);
  background-image: -webkit-linear-gradient(90deg, #FFF 0%, #323232  100%);
  background-image: -ms-linear-gradient(90deg, #FFF 0%, #1abc9c 100%);
}

/* Footer */
#footer {
	background: #4691FF;
	box-shadow: 10px 10px 5px #fff;
	color: white;
	font-size: 2em;
	padding: 2%;
}
              
            
!

JS

              
                $(document).ready(function(){
	$('a[href^="#"]').on('click',function (e) {
	    e.preventDefault();

	    var target = this.hash;
	    var $target = $(target);

	    $('html, body').stop().animate({
	        'scrollTop': $target.offset().top
	    }, 900, 'swing', function () {
	        window.location.hash = target;
	    });
	});
});

$(window).scroll(function(e){
  parallax();
});

//PARALLAX FUNCTION
function parallax(){
  var scrolled = $(window).scrollTop();
  $('#about').css('top',-(scrolled*1)+'px');
}
              
            
!
999px

Console