Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <header>
  <link href="https://fonts.googleapis.com/css?family=Abel" rel="stylesheet"
type='text/css'>
  <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
</header>

<div class="pageOne text-center" id="p1" >
  <div>
  
    <ul class="topnav nav nav-pills" id="myTopnav">
      <li>
        <a href="#p1">Huda</a>
      </li>
      <li>
        <a href="#p1">Home</a>
      </li>
      <li>
        <a href="#p2">Portfolio</a>
      </li>
      <li>
        <a href="#p3">About</a>
      </li>
      <li>
        <a href="#p4">Contact</a>
      </li>
    </ul>
  </div>
  
<div class= "pageOne">
  <div class="container">
  <h1 class="heading" data-target-resolver></h1>
  </div>
  <div class="btnList text-center">
    <a class="btn btn-default" href="#">Github</a>
    <a class="btn btn-default" href="#">LinkedIn</a>
    <a class="btn btn-default" href="#">FreeCodeCamp</a>
</div>
</div>
  <!---page 2--->
  <div class = "pageTwo">
  <div class ="row">
  <div class ="col-md-6 text-center">
    <h2>HUDA</h2>
    <p>Mother, educator, multi-disciplinary designer and artist. 
Huda has delved into various disciplines such as Architecture, graphic and print design, photography, and now, creative coding. She is aims to integrate art and technology in her current non-existent practice.</p>

    </div>
    <div class ="col-md-6">
      <img src="https://scontent-sit4-1.xx.fbcdn.net/v/t1.0-9/18893078_10155078102666311_2839891717628968171_n.jpg?oh=9a2be0fb5a609a904e6a74b53716ee9e&oe=59A512C7" class ="me"/>
    </div>
  </div>
    <!--page3-->
    <div class="pageThree text-center">
      <div class="paddingTop">
        <h1>coming soon</h1>
    </div>
      <!--page4-->
      <div class="pageFour text-center">
        div class="row">
    <div class="col-md-8">
      <h1>Contact Me <a href="mailto:isolatingbeats@gmail.com">isolatingbeats@gmail.com</a></h1>
    </div>
    <div class="col-md-4">
      <a class="btn btn-default paddingBTN" href="#"><i class="fa fa-twitter fa-lg" aria-hidden="true" id="twitterIcon">
      </i> 
      Twitter
        </a>
      <br/>
      <a class="btn btn-default paddingBTN" href="#">
        <i class="fa fa-github fa-lg" id="githubIcon" aria-hidden="true">
      </i> GitHub
      </a>
      <br/>
      <a class="btn btn-default paddingBTN" href="#">
        <i class="fa fa-linkedin-square fa-lg" id="linkedinIcon" aria-hidden="true">
      </i> Linkedin
      </a>
      <br/>
      </a>
      <br/>
      <a class="btn btn-default paddingBTN" href="#">
        <i class="fa fa-facebook-official fa-lg" id="facebookIcon" aria-hidden="true"></i> FaceBook
      </a>
    </div>
  </div>
  <div class="footer">
    <h3>
      <a href="http://www.codingtutorials360.com" target="blank">Huda -  </a>
       <a href="#p3" target="blank">Portfolio -  </a>
       <a href="#p2" target="blank">About Me -  </a>
       <a href="#p4" target="blank">Contact Me -  </a>
    </h3>
    <p>Copyright © Huda 2017</p>
  </div>
</div>
  
    
  
            
          
!
            
              .topnav {
  list-style-type: none;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background-color: #000;
  position: fixed; 
  overflow: hidden;
  top:0;
  z-index: 3;
  width:100%;
}

.topnav li a {
  display: inline-block;
  color: #fff;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  transition: 0.3s;
  font-size: 20px;
  font-family: 'Abel';
  
}

.topnav li:nth-last-child(5) {
 margin-right:70%; 
}

#topnav li:hover,
li:hover a:hover {
  color: #333;
}

#topnav li:hover a:visited {
  color: 	#A9A9A9
}

#topav a:visited {
  color: #CCC;
}

body {
  background-color:white;
  font-family:'Abel';
  color:white;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 5rem;
}

.heading {
  color: #fff;
  font-size: 5rem;
  font-weight: 300;
  text-transform: uppercase;
}


h1{
  padding:0;
  margin-top:0px;
  font-size:7.0em;
  padding-top:0%;
}


.btn-default{
  background-color:white;
  border-color:black;
  color:#A9A9A9;
  font-size:1.7em;
  margin-top:1%;
}

.pageOne{
  background:black;
  background-size:cover;
  height:800px;
  padding-bottom:10%
}

.pageTwo{
  background:white;
  background-size:cover;
  height:800px;
  padding-top: 5%;
}

h2{
  padding:0;
  margin-top:0px;
  font-size:5.0em;
  color:black;
  padding-top:0%;
}

p{
  padding:0;
  margin-top:0px;
  font-size:1.5em;
  color:black;
  padding-top:0%;
}

.me{
  display:block;
  margin-right:auto;
  margin-left:auto;
  border-radius:50%;
}

.pageThree{
  background:black;
  background-size:cover;
  padding-top:10%;
  padding-bottom:5%;
}

.pageFour{
  background:black;
  background-size:cover;
   padding-top:10%;
  padding-bottom:5%;
}
            
          
!
            
              const resolver = {
  resolve: function resolve(options, callback) {
    // The string to resolve
    const resolveString = options.resolveString || options.element.getAttribute('data-target-resolver');
    const combinedOptions = Object.assign({}, options, {resolveString: resolveString});
    
    function getRandomInteger(min, max) {
      return Math.floor(Math.random() * (max - min + 1)) + min;
    };
    
    function randomCharacter(characters) {
      return characters[getRandomInteger(0, characters.length - 1)];
    };
    
    function doRandomiserEffect(options, callback) {
      const characters = options.characters;
      const timeout = options.timeout;
      const element = options.element;
      const partialString = options.partialString;

      let iterations = options.iterations;

      setTimeout(() => {
        if (iterations >= 0) {
          const nextOptions = Object.assign({}, options, {iterations: iterations - 1});

          // Ensures partialString without the random character as the final state.
          if (iterations === 0) {
            element.textContent = partialString;
          } else {
            // Replaces the last character of partialString with a random character
            element.textContent = partialString.substring(0, partialString.length - 1) + randomCharacter(characters);
          }

          doRandomiserEffect(nextOptions, callback)
        } else if (typeof callback === "function") {
          callback(); 
        }
      }, options.timeout);
    };
    
    function doResolverEffect(options, callback) {
      const resolveString = options.resolveString;
      const characters = options.characters;
      const offset = options.offset;
      const partialString = resolveString.substring(0, offset);
      const combinedOptions = Object.assign({}, options, {partialString: partialString});

      doRandomiserEffect(combinedOptions, () => {
        const nextOptions = Object.assign({}, options, {offset: offset + 1});

        if (offset <= resolveString.length) {
          doResolverEffect(nextOptions, callback);
        } else if (typeof callback === "function") {
          callback();
        }
      });
    };

    doResolverEffect(combinedOptions, callback);
  } 
}

/* Some GLaDOS quotes from Portal 2 chapter 9: The Part Where He Kills You
 * Source: http://theportalwiki.com/wiki/GLaDOS_voice_lines#Chapter_9:_The_Part_Where_He_Kills_You
 */
const strings = [
  'I am Huda',
  'أنا هدى',
  '我是胡达',
  'Saya Huda'
];

let counter = 0;

const options = {
  // Initial position
  offset: 0,
  // Timeout between each random character
  timeout: 5,
  // Number of random characters to show
  iterations: 10,
  // Random characters to pick from
  characters: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'x', 'y', 'x', '#', '%', '&', '-', '+', '_', '?', '/', '\\', '='],
  // String to resolve
  resolveString: strings[counter],
  // The element
  element: document.querySelector('[data-target-resolver]')
}

// Callback function when resolve completes
function callback() {
  setTimeout(() => {
    counter ++;
    
    if (counter >= strings.length) {
      counter = 0;
    }
    
    let nextOptions = Object.assign({}, options, {resolveString: strings[counter]});
    resolver.resolve(nextOptions, callback);
  }, 1000);
}

resolver.resolve(options, callback);
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console