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

              
                <body data-spy="scroll" data-target=".navbar" data-offset="50" >
<header>
 <nav class="navbar navbar-default navbar-fixed-top">
  <div class="container">
    <a href="#" class="navbar-brand"> Freddie O </a>

    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
    	<span class="icon-bar"></span>
    	<span class="icon-bar"></span>
    	<span class="icon-bar"></span>
    </button>

    <div class="collapse navbar-collapse" id="myNavbar">
      <ul class="nav navbar-nav navbar-right">
    	<li><a href="#About">About</a></li>
    	<li><a href="#Portfolio">Portfolio</a></li>
    	<li><a href="#Contact">Contact</a></li>
      </ul>
    </div>
  </div>
 </nav>
</header>

<div class="container welcome-pg" id="About">
    <div class="row">
      <div class="col-sm-4"> 
       <img src="https://i.imgur.com/gzlqN1n.jpg" onmouseover="this.src='https://i.imgur.com/s1ZpREu.jpg'" onmouseout="this.src='https://i.imgur.com/gzlqN1n.jpg'" alt="My face!" class="img-responsive img-circle">
      </div>
<!-- I divided the paragraph into multiple <p>'s in order to for the type texting effect to be effective, creating different keyframe animations for each -->
      <div class="col-sm-8 welcome-txt">
          <p> Hello World, Welcome to my portfolio page!. I have just begun          </p>
          <p>my journey to become a full-stack developer,"But why?". Well          </p> 
          <p>this is because I believe in the transformational power of </p> 
          <p> technology. Enough babbling......enjoy my page and please </p>
          <p>leave some <span><a href="#Contact">feedback!</a></span> </p> 
      </div>
    </div>
</div> 
</body>
              
            
!

CSS

              
                body {
	padding-top: 70px;
}

/* This is to stop the welcome container being overlaid by the navbr */
.welcome-pg {
	margin-top: 40px;
}
/* This is to ensure the body of the text aligns with the picture when is desktop mode */
.welcome-txt {
	padding-top: 70px;
}

p{
  color: black; 
  font-family: "Courier";
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  animation: type 4s steps(60, end); 
}

.navbar-header button.navbar-toggle, .navbar-header .icon-bar {
  border: 1px solid black;
}
/* Different animations had to be implented for each <p> element to ensure that the type texting effect occurred line by line */

p:nth-child(2){
  animation: type2 8s steps(60, end);
}

p:nth-child(3){
  animation: type3 11s steps(60, end);
}

p:nth-child(4){
  animation: type4 14s steps(60, end);
}

p:nth-child(5){
  animation: type5 20s steps(60, end);
}

p a{
  color: black;
  text-decoration: none;
}

span a{
  animation: blink 1s infinite;
} 

@keyframes type{ 
  from { width: 0;} 
} 

@keyframes type2{
  0%{width: 0;}
  50%{width: 0;}
  100%{width: 100;} 
}

@keyframes type3{
  0%{width: 0;}
  25%{width: 0;}
  50%{width: 0;}
  75%{width: 0;}
  100%{width: 100;} 
}

@keyframes type4{
  0%{width: 0;}
  20%{width: 0;}
  40%{width: 0;}
  60%{width: 0;}
  80%{width: 0;}
  100%{width: 100;} 
}

@keyframes type5{
  0%{width: 0;}
  25%{width: 0;}
  50%{width: 0;}
  75%{width: 0;}
  100%{width: 100;} 
}

@keyframes blink{
  to{opacity: .0;}
}

::selection{
  background: white;
}
              
            
!

JS

              
                
              
            
!
999px

Console