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 includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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

              
                <html>

	<head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Gary Horsman | Welcome to my Online Life</title>
        
        <!-- Latest compiled and minified CSS -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
        
        <!-- Optional theme -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">

        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
            <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
            <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
        <![endif]-->
        
        <!--CDN link for the latest TweenMax-->
        <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js"></script> 

        <!-- my own LESS file *include after theming or other bootstrap files -->
        <link rel="stylesheet/less" href="_css/landing.less">
        
    </head>

	<body>
    
		<div class="container-fluid">
        
        	<header class="row">
                <div class="top-row col-xs-12">
            	<div class="row">
                	<div class="logo col-xs-12 col-md-5 col-md-offset-1"><img src="http://www.garyhorsman.com/images/garyhorsman_logo_vA.svg" name="imgMastLogo" id="imgMastLogo"></div>
					<div class="social col-xs-12 col-md-5"><p>Follow Me</p>
    <p><a href="https://www.facebook.com/gary.horsman" target="_blank"><img src="http://www.garyhorsman.com/images/icon_facebook_20x20.svg" alt="Facebook" name="imgIconFB" id="imgIconFB" class="social_icon"></a><a href="https://twitter.com/garyhorsman" target="_blank"><img src="http://www.garyhorsman.com/images/icon_twitter_20x20.svg" alt="Twitter" name="imgIconTwitter" id="imgIconTwitter" class="social_icon"></a><a href="https://www.linkedin.com/in/garyhorsman" target="_blank"><img src="http://www.garyhorsman.com/images/icon_linkedin_20x20.svg" alt="LinkedIn" name="imgIconLinkedIn" id="imgIconLinkedIn" class="social_icon"></a><a href="https://www.pinterest.com/garyhorsman/" target="_blank"><img src="http://www.garyhorsman.com/images/icon_pinterest_20x20.svg" alt="Pinterest" name="imgIconPinterest" id="imgIconPinterest" class="social_icon"></a><a href="mailto:me@garyhorsman.com"><img src="http://www.garyhorsman.com/images/icon_email_20x20.svg" alt="email" name="imgIconEmail" id="imgIconEmail" class="social_icon"></a></p></div>	
                </div>
                </div>
                <div class="row">
  					<div class="banner col-xs-12"><img src="http://www.garyhorsman.com/images/11.png" alt="Doughboy" name="imgDoughboy" id="imgDoughboy">
                    <h1>Welcome to my online life.</h1>
    				</div>
                </div>
    		</header>
            
			<nav class="row">
                <div class="widget-row col-xs-12">
            	<div class="row">
  					<div class="widget col-xs-12 col-sm-6 col-md-3"><a href="#null"><img src="http://www.garyhorsman.com/images/13.png" alt="Gary Horsman Design" name="imgWidgetGHD" id="imgWidgetGHD"></a>
    <p><a href="#null"><strong> Design</strong><br>
    Freelance design and online portfolio</a></p></div>
  <div class="widget col-xs-12 col-sm-6 col-md-3"><a href="#null"><img src="http://www.garyhorsman.com/images/12.png" alt="Bloop" name="imgWidgetBloop" id="imgWidgetBloop"></a>
    <p><a href="#null"><strong>Art</strong><br>
      Drawings, cartoons and sketches</a></p></div>
  <div class="widget col-xs-12 col-sm-6 col-md-3"><a href="#null"><img src="http://www.garyhorsman.com/images/14.png" alt="So Good Girls cover" name="imgWidgetSoGood" id="imgWidgetSoGood"></a>
    <p><a href="#null"><strong>Books</strong><br>
      Comics and novels, completed and in progress</a></p></div>
  <div class="widget col-xs-12 col-sm-6 col-md-3"><a href="#null"><img src="http://www.garyhorsman.com/images/garyhorsman_widget_blog.svg" alt="Blog" name="imgWidgetBlog" id="imgWidgetBlog"></a>
    <p><a href="#null"><strong>Blog</strong><br>
      Personal thoughts and ideas on everything</a></p></div>
  				</div>
                </div>
			</nav>
            
			<footer class="footer">
            	<div class="row">
                	<div class="col-xs-12">
                	<p>All material on this website &copy;2014 Gary Horsman. All rights reserved.<br>
Powered by <a href="http://www.textpattern.com" title="Link to Textpattern site" target="_blank">Textpattern.</a></p>
					</div>
                </div>
			</footer>
            
		</div>
        
    <!--less.js cdn -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/less.js/1.7.4/less.min.js"></script>

    <!-- Google's jQuery CDN link for dynamic menus-->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    
    <!-- Latest compiled and minified JavaScript -->
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
        
    <!--link to animation routines-->
    <script src="_js/landing_animation_test.js"></script>
    
	</body>
</html>
              
            
!

CSS

              
                /* LESS Document */

/* breakpoints */

@screen-sm-min: 768px;
@screen-md-min: 992px;
@screen-lg-min: 1200px;

/* colors */

@body-bg: #8A8A8A;
@header-bg: #ffffff;
@widgets-bg: #efefef;
@headline: #B0B2C4;

/* fonts */

@font-face {
    font-family: 'latobold';
    src: url('../_fonts/lato-bol-webfont.eot');
    src: url('../_fonts/lato-bol-webfont.eot?#iefix') format('embedded-opentype'),
         url('../_fonts/lato-bol-webfont.woff') format('woff'),
         url('../_fonts/lato-bol-webfont.ttf') format('truetype'),
         url('../_fonts/lato-bol-webfont.svg#latobold') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'latolight';
    src: url('../_fonts/lato-lig-webfont.eot');
    src: url('../_fonts/lato-lig-webfont.eot?#iefix') format('embedded-opentype'),
         url('../_fonts/lato-lig-webfont.woff') format('woff'),
         url('../_fonts/lato-lig-webfont.ttf') format('truetype'),
         url('../_fonts/lato-lig-webfont.svg#latolight') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'latohairline';
    src: url('../_fonts/lato-hai-webfont.eot');
    src: url('../_fonts/lato-hai-webfont.eot?#iefix') format('embedded-opentype'),
         url('../_fonts/lato-hai-webfont.woff') format('woff'),
         url('../_fonts/lato-hai-webfont.ttf') format('truetype'),
         url('../_fonts/lato-hai-webfont.svg#latohairline') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'latolight_italic';
    src: url('../_fonts/lato-ligita-webfont.eot');
    src: url('../_fonts/lato-ligita-webfont.eot?#iefix') format('embedded-opentype'),
         url('../_fonts/lato-ligita-webfont.woff') format('woff'),
         url('../_fonts/lato-ligita-webfont.ttf') format('truetype'),
         url('../_fonts/lato-ligita-webfont.svg#latolight_italic') format('svg');
    font-weight: normal;
    font-style: normal;

}

/* universal styles aka scaffolding */

body {
	background-color: @body-bg;
	margin: 0;
	padding: 0;
}

p {
	margin: 0 0 5px 0;
}

/* Mobile Layout: 786px and below. ========================= */

.top-row {
    background-color: @header-bg;
    padding-top: 20px;
}

.logo {
	text-align: center;
}

.logo img {
    width: 40%;
}

.social {
	text-align: center;
    padding-top: 10px;
}

.social p {
	font-family: latolight;
	font-size: 14px;
	color: black;
}

.social p a img {
    margin: 0 5px;
}

.banner {
	text-align: center;
    background-color: @header-bg;
    padding-bottom: 20px;
}

.banner img {
    width: 40%;
}

.banner h1 {
	font-family: latolight;
    font-size: 4em;
    margin-top: 0;
    color: @headline;
}

.widget-row {
	background-color: @widgets-bg;
}

.widget {
    text-align: center;
	margin: 30px 0;
	vertical-align: top;
}

.widget img {
	width: 35%;
	margin-bottom: 8px;
}

.widget p {
	font-family: latolight, 'Trebuchet MS';
	font-size: 0.8em;
	margin-top: 0px;
	line-height: 1.2;
	color: black;
}

.widget p strong {
	font-family: latobold, 'Trebuchet MS';
	color: #666;
}

.widget p a:link, .widget p a:visited {
	text-decoration: none;
	color: black;
}

.widget p a:hover, .widget p a:hover strong {
	text-decoration: none;
	color: orange;
}

footer {
	text-align: center;
    padding: 20px 0;
}

footer p {
	font-family: latolight, 'Trebuchet MS';
	font-size: 0.75em;
    line-height: 1.2;
	color: #aaaaaa;
}

footer p a:link, footer p a:visited {
	text-decoration: none;
	color: #aaaaaa;
	font-family: latobold, 'Trebuchet MS';
}

footer p a:hover {
	text-decoration: none;
	color: orange;
}

/* Small devices (tablets, 768px and up) ========================= */
@media (min-width: @screen-sm-min) {
    
    .logo img {
        width: 25%;
    }
    
    .banner img {
        width: 25%;
    }
    
    .widget img {
        width: 30%;
    }
}

/* Medium devices (desktops, 992px and up) ========================= */
@media (min-width: @screen-md-min) {
	.logo {
		text-align: left;
	}
    
    .logo img {
        width: 18%;
    }
	
	.social {
		text-align: right;
	}
    
    .social p a img {
        margin-left: 5px;
    }
    
    .banner img {
        width: 15%;
    }
}

/* Large devices (large desktops, 1200px and up) ========================= */
@media (min-width: @screen-lg-min) {

} 
              
            
!

JS

              
                // JavaScript Document
window.onload = function(){
    var doughboy = document.getElementByID("imgDoughboy");
    TweenMax.from(doughboy, 2, {opacity:0});
}
              
            
!
999px

Console