MufeezAmjad Designs Revamped Site

by Mufeez Amjad

HTML

<header class="main-header" id="head">
  <h1>Mufeez Amjad</h1>
</header>

<body>
<div class="intro container"> <img class="logo" src="https://image.ibb.co/jsRFXF/MA_Designs_01.png" alt="MA-Designs Logo" />
  <p class="intro-text">I'm an experienced graphic designer and developer living and working in Pickering.</p>
</div>
</body>
<div class="footer">
  <nav>
    <ul>
      <li><a id="design" href="#">design</a></li>
      <li><a id="develop" href="#">develop</a></li>
      <li><a id="contact" href="contact.html">bio/contact</a></li>
    </ul>
  </nav>
  <p class="copyright">© MufeezAmjad Designs, 2017</p>
</div>

CSS

.main-header {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 6rem;
	color: #20ace2;
	background: white;
	line-height: 6rem;
	transform: translateY(0);
	transform: translate3d(0, 0, 0);
	transition: .25s transform;
	backface-visibility: hidden;
	font-family: Nevis;
	font-size: 25px;
}
.heads-up {
	transform: translateY(-6rem);
	transform: translate3d(0, -6rem, 0);
}
.main-header h1 {
	float: left;
	font-size: 1.4rem;
	margin: 0 0 0 2rem;
}
body {
	margin: 0;
	padding: 0;
}
nav {
	height: 40px;
}
nav ul {
	padding: 0;
	width: 347px;
	margin: 0 auto;
}
nav ul li {
	list-style: none;
	font-family: Nevis;
	font-size: 19px;
	;
}
nav ul li a {
	text-decoration: none;
	float: left;
	display: block;
	padding: 10px 20px;
	color: #363636;
}
nav ul li a:hover {
	color: #20ace2;
}
.content {
	width: 800px;
	display: block;
}
.content p {
	text-align: center;
}
.footer {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 1rem;
	background-color: #ffffff;
	text-align: center;
}
.header {
	position: fixed;
	right: 0;
	top: 0;
	left: 0;
	padding: 1rem;
	background-color: #efefef;
	text-align: left;
	font-family: Nevis;
	font-size: 25px;
	color: #363636;
}
.copyright {
	font-size: 12px;
	font-family: Nevis;
	color: #363636;
}
.intro {
	font-family: Nevis;
	font-size: 90px;
	color: #20ace2;
	opacity: 1;
	transition: opacity 0.40s linear;
}
html, body, .container {
	height: 100%;
}
.container {
	position: relative;
	text-align: center;
}
.container > p {
	position: absolute;
	top: 40%;
	left: 0;
	right: 0;
	margin-top: -9px;
}
.logo {
	width: 150px;
	padding-top: 200px;
}
body {
	background-image: url(http://www.solidbackgrounds.com/images/2560x1440/2560x1440-white-solid-color-background.jpg);
	background-size: 1920px 925px;
	background-repeat: no-repeat;
	-webkit-transition: background ease-in 0.40s;
	-moz-transition: background ease-in 0.40s;
	-o-transition: background ease-in 0.40s;
	transition: background ease-in 0.40s;
}

JavaScript

$('#contact').on('mouseenter', function() {
  $('body').css('background-image', 'url("https://image.ibb.co/fmOqzv/Contact.png")');
  $('.intro').css('opacity', '0');
});

$('#contact').on('mouseleave', function() {
  $('body').css('background-image', 'url(http://www.solidbackgrounds.com/images/2560x1440/2560x1440-white-solid-color-background.jpg)');
  $('.intro').css('opacity', '1');
});

$('#design').on('mouseenter', function() {
  $('body').css('background-image', 'url("https://image.ibb.co/d2Dqzv/Portfolio.png")');
  $('.intro').css('opacity', '0');

});

$('#design').on('mouseleave', function() {
  $('body').css('background-image', 'url(http://www.solidbackgrounds.com/images/2560x1440/2560x1440-white-solid-color-background.jpg)');
  $('.intro').css('opacity', '1');
});

$('#develop').on('mouseenter', function() {
  $('body').css('background-image', 'url("https://image.ibb.co/mSQPuv/develop.png")');
  $('.intro').css('opacity', '0');

});

$('#develop').on('mouseleave', function() {
  $('body').css('background-image', 'url(http://www.solidbackgrounds.com/images/2560x1440/2560x1440-white-solid-color-background.jpg)');
  $('.intro').css('opacity', '1');
});

/*
* HeadsUp 1.5.6
* @author Kyle Foster (@hkfoster)
* @license MIT
*/
;(function( window, document, undefined ) {

  'use strict';

  // Extend function
  function extend( a, b ) {
    for( var key in b ) {
      if( b.hasOwnProperty( key ) ) {
        a[ key ] = b[ key ];
      }
    }
    return a;
  }

  // Throttle function (https://bit.ly/1eJxOqL)
  function throttle( fn, threshhold, scope ) {
    threshhold || ( threshhold = 250 );
    var previous, deferTimer;
    return function () {
      var context = scope || this,
          current = Date.now(),
          args    = arguments;
      if ( previous && current < previous + threshhold ) {
        clearTimeout( deferTimer );
        deferTimer = setTimeout( function () {
        previous   = current;
        fn.apply( context, args );
        },...