Personal Portfolio

In this example below you will see how to do a Personal Portfolio with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by SamrajM, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright SamrajM ©

Technologies

  • HTML
  • CSS
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>Scrolling</title>
  
  
  <link rel='stylesheet prefetch' href='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css'>
<link rel='stylesheet prefetch' href='https://rawgithub.com/alvarotrigo/pagePiling.js/master/jquery.pagepiling.css'>
<link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css'>

      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <!-- My Portfolio
  Notes:
  - I am not going to show my picture
-->

<body>
<div id="pagepiling">
    <div class="section" id="section1">
        <div class="intro">
            <p>Scrolling Pages.</p>
         </div>
    </div>
    <div class="section" id="section2">
        <div class="intro">
            <h1></h1> 
            <p></p>
        </div>
    </div>
    <div class="section" id="section3">
         <div class="intro">
					 
         </div>
    </div>
    <div class="section" id="section4">
        <div class="content">

        </div>
    </div>
</div>
</body>
  <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js'></script>
<script src='https://rawgit.com/alvarotrigo/pagePiling.js/master/jquery.pagepiling.min.js'></script>

  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/SamrajM/personal-portfolio-dXjXvx */
body {
    font-family: sans-serif, arial, helvetica;
}
.section {
    background-attachment: fixed; 
 
    background-size: auto 80%;
    background-position: 50% 0%;
    background-repeat: no-repeat;
	margin-right: 250 px;
	margin-left: 250 px;
}

#section1 {
	
    
}
#section2 {
    
}
#section3 {
    
}
#section4 .content {
    top: 100%;
    position: absolute;
    left: 0;
}
.intro {
    position: absolute;
    bottom: 100px;
    text-align: center;
    width: 100%;

}
.intro h1 {
    font-size: 5em;
    font-weight: bold;
    color: #000;
}
 

#section4 .intro {
    color: #000;
}
.page {
    width: 80%;
    margin: 60px auto;
    background:white;
    padding: 60px;
    box-sizing: border-box;
}
.page p {
    font-style: 12px;
    margin: 20px 0 0 0;
    line-height: 1.35em;
    color: #333;
}

.body {
	font-family:sans-serif;
}

/*Downloaded from https://www.codeseek.co/SamrajM/personal-portfolio-dXjXvx */
$(document).ready(function() {
        /*
        * Plugin intialization
				* I used pagepiling.js to make this!
        */
        $('#pagepiling').pagepiling({
            verticalCentered:false,
            css3:false,
            sectionsColor: ['white', '#E8E8E8', '#f2f2f2', '#EC008C'],
            onLeave: function(index, nextIndex, direction){
 
                $('.section').eq(index -1).find('h1, p').fadeOut(700, 'easeInQuart');
 
                $('.section').eq(nextIndex -1).find('h1, p').fadeIn(700, 'easeInQuart');
 

                if(nextIndex == 4){

                    $('#pp-nav').fadeOut();
 
                    $('#section4').find('.content').animate({
                        top: '0%'
                    }, 700, 'easeInQuart');
                }
 
               
                if(index == 4){
                    
                    $('#pp-nav').fadeIn();
 
                    $('#section4 .content').animate({
                        top: '100%'
                    }, 700, 'easeInQuart');
                }
            },
        });
    });

Comments