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

              
                <div class="container">
  <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" aria-expanded="false" aria-controls="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="#">Mike Workman</a>
      </div>
      <!-- Collect the nav links, forms, and other content for toggling -->
      <div id="navbar" class="collapse navbar-collapse navbar-right">
        <ul class="nav navbar-nav ">
          <li><a href="#myHome">Home</a></li>
          <li><a href="#aboutMe">About Me</a></li>
          <li><a href="#myProjects">My Projects</a></li>
          <li><a href="#myContact">Contact Me</a></li>
        </ul>
      </div>
    </div>
  </nav>
  <div class="row" id="MWrow">
    <!-- opening row -->
    <div class="col-md-12 col-xl-12">
      <section class="photoContainer One" id="myHome">
        <div class="MW">
          <!-- 
                        for the animated logo:
                        1   define the canvas with a fixed size inside a section.
                        2   then draw the logo on the canvas using javascript 
                        3   animate the canvas with css 
                        -->
          <canvas id="MWlogo" width="360" height="600" ;>
                           <!--<script = "MWcanvas.js"></script>-->
                       </canvas>
          <h1>  M W Software</h1>
          <p>A concept for software solutions that will support health care and research in the remote areas of Africa </p>
        </div>
      </section>
      <!--End Slide 1-->
      <section class="photoContainer Two" id="aboutMe">
        <div class="filter">
        </div>
        <div class="col-md-6 col-md-push-3 col-xl-6 col-xl-push-3 text">
          <h1> Who am I?</h1>
          <p>I am an older guy from Cape Town (South Africa) who has spent many years in various IT roles. I'm tired of making other people rich and want to give something back. I'm particularly interested in trying to use technology to promote health in
            the remote areas on South Africa, and the rest of Africa. However we have challenges that are often not understood by the first world, and so technology (particularly mobile technology) needs to take these challenges into account. </p>
        </div>
      </section>
      <!--End Slide 2-->
      <section class="photoContainer Three" id="myProjects">
        <div class="filter">
        </div>
        <div class="text">
          <p>At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt
            mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis
            voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente
            delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat</p>
        </div>
      </section>
      <!--End Slide 3-->
      <section class="photoContainer Four" id="myContact">
        <div class="filter">
        </div>
        <div class="text">
          <h1 id="fm">Find me here<br></h1>
          <!--<span id="arrow">&#8664;</span><br>-->
          <i class="fa fa-map-pin" aria-hidden="true"></i>
          <br><br>
          <span id="email">or <i class="fa fa-envelope" aria-hidden="true"></i> - <a href="mailto:mworkman@mweb.co.za">mworkman@mweb.co.za</a>
                            </span><br><br>
          <span id="tel">or SMS - <a href="tel:+27826162977">+27 (0)21 616 2977</a>
                        </span><br><br>
          <span id="skype"> or <i class="fa fa-skype" aria-hidden="true"></i> - <a href="skype:profile_name?mikwor">mikwor</a></span>
        </div>
      </section>
      <!--End Slide 4-->
    </div>
  </div>
</div>
<!-- my new script sources -->
<script>
  // self executing function here
            (function() {
                var canvas = document.getElementById("MWlogo");
                var ctx = canvas.getContext("2d");
                var x = 30;
                var grd = ctx.createLinearGradient(0, x, 360, 540);               
                grd.addColorStop(0, "rgb(0, 88, 156)");
                grd.addColorStop(1, "white");
                ctx.fillStyle = grd;
                ctx.beginPath();
                ctx.moveTo(0,0+x);   //A1
                ctx.lineTo(45,0+x);   //A2
                ctx.lineTo(150,188+x);   //BC
                ctx.lineTo(255,0+x);   //D1
                ctx.lineTo(300,0+x);   //D2
                ctx.lineTo(300,240+x);   //D4
                ctx.lineTo(255,240+x);   //D3
                ctx.lineTo(255,92.29+x);   //CD
                ctx.lineTo(172.5,240+x);   //C2
                ctx.lineTo(127.5,240+x);   //B2
                ctx.lineTo(45,92.29+x);   //AB
                ctx.lineTo(45,240+x);   //A4
                ctx.lineTo(0,240+x);   //A3
                ctx.closePath();
                ctx.stroke();
                ctx.fill(); 

                ctx.beginPath();
                ctx.moveTo(0,240+x);   //A3
                ctx.lineTo(63.75,480+x);   //E1
                ctx.lineTo(108.75,480+x);   //E2
                ctx.lineTo(150,324.71+x);   //FG
                ctx.lineTo(191.25,480+x);   //H2
                ctx.lineTo(236.25,480+x);   //H1
                ctx.lineTo(300,240+x);   //D4
                ctx.lineTo(255,240+x);   //D3
                ctx.lineTo(213.75,402.35+x);   //GH
                ctx.lineTo(172.5,240+x);   //C2
                ctx.lineTo(127.5,240+x);   //B2
                ctx.lineTo(86.25,402.35+x);   //EF
                ctx.lineTo(45,240+x);   //A4
                ctx.closePath();
                ctx.stroke();
                ctx.fill();
            })();
</script>
              
            
!

CSS

              
                section{
    background-attachment: fixed;
    background-size:contain;
}
/* padding for navbar*/
body {
    padding-top: 49px; 

}

.navbar-default{ 
    background-color: rgb(175,187,219);
    border-color: rgb(126,166,206);
}

.MW{
    font-family: "Verdana";
    font-size: 16px;
    color:rgb(0, 88, 156);
    text-align: center;
    min-height: 12.5cm;
    height: 100%; 
    background: radial-gradient(rgb(175,187,219),rgb(126,166,206));
    background-size:cover;
    overflow:auto;
    padding-top: 50px;

}
.Two{ 
    background-image:url("https://i.guim.co.uk/img/static/sys-images/Guardian/Pix/pictures/2010/10/28/1288262105952/Ojom-health-centre-in-Kat-006.jpg?w=620&q=55&auto=format&usm=12&fit=max&s=34095616cfeee72e8655cd4bf89e22c3") ;
    background-size:cover;
    overflow:auto;
}
.fa-map-pin{
    padding-left: 7%;
    font-family: "Verdana";
    font-size: 16px;
   /* line-height: 50%;*/
}
#fm{
    line-height: 80%;
}

.Three{
    background:url("images/BN-IT333_0604eb_M_20150604115637.jpg");
    background-size:cover;
    overflow:auto;
}
.Four{
    background:url("https://www.koerant.co.za/wp-content/uploads/2015/08/CT_CapeTown02.jpg");
    background-size:cover;
    overflow:auto;
}
.photoContainer{
    position:relative;
    width:100%;
    z-index: 1;
    height:100vh;
    min-height:100vh;
   
}
.filter{
    position:absolute;
    min-height: 100%;
    height: 100%;
    width: 100%;
    background-color: #ffffff;
    opacity: 0.6;
    z-index: 2;
}
.text{
    padding-top: 30vh;
    padding-left: 5%;
    padding-right: 5%;
    position: relative;
    z-index: 9;
    opacity:1;
    font-weight:bold;
        color: #000000;
    font-family: "Arial";
    font-size: 16px;
}
    
#MWlogo{
    -webkit-animation-name: MWl;    /* animation name below */
    -webkit-animation-iteration-count: infinite;  /* how long to continue the animation */
    -webkit-animation-timing-function: linear;  /* variable motion or constant */
    -webkit-animation-duration: 10s;  /* time for one cycle */
    
    -moz-animation-name: MWl;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: linear;
    -moz-animation-duration: 10s;
    
    animation-name : MWl;
    animation-iteration-count:infinite;
    animation-timing-function: linear;
    animation-duration: 10s;
       
    width: 25%;  /* These two lines make the canvas responsive */
    height: auto; 
}
/* define the animations here - give them a name e.g. MWl */
@-webkit-keyframes MWl {
    from { -webkit-transform: rotateY(0deg);    }
    to   { -webkit-transform: rotateY(-360deg); }
  }
  /* all other browsers */
@keyframes MWl {
    from {
       -moz-transform: rotateY(0deg);
      -ms-transform: rotateY(0deg);
      transform: rotateY(0deg);
    }
    to{
       -moz-transform: rotateY(-360deg);
      -ms-transform: rotateY(-360deg);
      transform: rotateY(-360deg);
    }
}

              
            
!

JS

              
                
              
            
!
999px

Console