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

              
                
		<link href='https://fonts.googleapis.com/css?family=Montez' rel='stylesheet' type='text/css'>
		<link href='https://fonts.googleapis.com/css?family=Dancing+Script' rel='stylesheet' type='text/css'>
		<link href='https://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>

<header>
			<section class="container">
				<nav>
					<ul>
						<li>Home</li>
						<li>Pageants</li>
						<li>Charities</li>
						<li>Information</li>
						<li class="expand"></li>
						<li>Application</li>
						<li>Payments</li>
						<li>Gallery</li>
						<li>Contact</li>
					</ul>
				</nav>
				<div class="logo">
					<div class="stars">
					</div>
					<div class="slipper">
					</div>
				</div>
			</section>
		</header>
	
		
		<div class="hero">
			<section class="container">
				<h1>Welcome to <strong>The Glass Slipper</strong> Natural Beauty Pageant Website.</h1>
			</section>
		</div>
		
		<div class="content">
			<section class="container">
				<article role="main" class="main">
				  <h2>Welcome to <strong>The Glass Slipper</strong> Natural Beauty Pageant!</h2>
				  
				  <p>The The Glass Slipper Beauty Pageant would like to thank you for your interest in this pageant system.</p>
				  
				  <p>Welcome! We have an exciting line up of pageants for the 2012-2013 pageant year. The contestant ages are birth-16 years old. The Glass Slipper accepts contestants from any state. We will continue to have the Grand Supreme and Mini Supreme at each regular season pageant. There's going to be more trophies, medals and crowns this year. Please join us for lots of fun and excitement as we watch your children grow and make new friends.</p>
				  
				  <p>The Glass Slipper is excited about the festivals and fairs that we will be hosting. For the festivals, the categories will be smaller and more simple. The Festival fees will be set up according to what categories each individual festival committee requests. We are greatly looking forward to this new adventure. All regular season (full) pageants and festival pageants information and applications can be found on this website.</p>

				  <p>As The Glass Slipper grows, we are expanding to different cities and states. The tremendous response to this system has been outstanding. We attribute the success to the loyality and fairness of the people involved. This is a locally owned and operated family business. You, as the contestant, will not be lost in the crowd. Each contestant is recognized on stage and is treated equally. We all strive to make this the best natural pageant system contestants participate in.</p>

					
				  <h4>The rules are very simple.</h4>
				  
				  <p><strong>Be natural!</strong>  Limited Make-up will be allowed, but only age appropriate and is detailed in the applications. <strong>Nothing fake allowed</strong>. Dresses can be anything from a nice party dress to a Glitzy dress. No coaching is required for this pageant but is allowed. Judges are instructed to follow all the rules. Deductions will be made if instructions are not followed. All judging is based on age ability. Score sheets are always handed out and available. This pageant system does <strong>not allow</strong> pro am modeling, bathing suits, disrobing or bare belly's.</p>
				  
				  <p><strong>Win the Grand Supreme Queen or the Mini Supreme Queen Title and win one of 2 beautiful Crystal "GLASS SLIPPERS" awarded by The Glass Slipper Natural Beauty Pageant!</strong></p>
				  
				  <figure class="alignLeft">
					<img src="http://www.theglassslipperbeautypageant.com/sitebuildercontent/sitebuilderpictures/.pond/slipperpics.jpg.w300h112.jpg" alt="Test image"/>
					<figcaption>Click on the pic to be directed to the Glass Etcher website.</figcaption>
				 </figure>
				  
				  <p>A very special Thank You to Jack Vrtar at Custom Glass Etching of Los Angeles. They custom etch all of the beautiful crystal Glass Slippers that are awarded at every The Glass Slipper  pageant. Please visit <a href="http://A very special Thank You to Jack Vrtar at Custom Glass Etching of Los Angeles. They custom etch all of the beautiful crystal Glass Slippers that are awarded at every The Glass Slipper  pageant. Please visit www.glassetcher.com for lots of custom awards and fantastic gift ideas. All of the work is fantastic!">www.glassetcher.com</a> for lots of custom awards and fantastic gift ideas. All of the work is fantastic!</p>
				  
				  <p>The goal is to make every contestant feel special, make new friends, and especially have lots of fun. There will be many ways at each pageant to save money, from Charities to items donations for the less fortunate, and more. All in an attempt to save money, give back to the community, and make this pageant system affordable for everyone! Please join The Glass Slipper  Natural Beauty Pageant to become a girl's favorite pageant!</p>
				  
				 
				</article>
			</section>
		</div>
              
            
!

CSS

              
                *{
  margin: 0;
  padding:0;
  -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
  color:#555;
}
body{
  margin:0px auto;
}

h1{
  font-family: 'Montez', cursive;
  font-size: 25px; 
}
h2, h3, h4, h5, h6{
  font-family: 'Oswald',sans-serif;
  font-size: 25px;
  margin:30px 0;
}

.container{
  padding: 0 20px;
  width: 100%;
  max-width: 1024px;
  min-width:768px;
  margin:0 auto;
  position:relative;
}

header{ 
  position:fixed;
  top:0;
  right:0;
  height:40px;
  left:0;
  z-index:99999;
  background:#fff;			
  -webkit-box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.3);
  box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.3);
}
header nav{
  text-align:center;
}
header nav ul li{
  list-style:none;
  display:inline-block;
  font-family: 'Oswald', sans-serif;
  color:#555;
  margin:0px 10px;
  padding:5px 0 0;
  cursor:pointer;
}

header nav ul li:hover{
   color:#6394de; 
}

header nav ul li.expand{
  width:0;
  margin:0;
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  -ms-transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}


.hero{
  background: #ccc;
  position:fixed;
  top:0;
  right:0;
  height:460px;
  left:0;
  z-index:0;
  background: url("https://www.olliehusbanddesign.co.uk/test/catwalk.jpg") repeat scroll center center / cover  transparent;
  background-size:cover;
}

.hero h1{
  margin: 250px auto;
  color:#fff;
  text-align: center;
  font-size:36px;
}

.hero h1 strong{
  font-size:56px;
  display:block;
  font-family: 'Dancing Script', cursive;
  color:#fff;
}

.logo{
  position: relative;
  top: 0px;
  transform: scale(1);
  -moz-transform: scale(1);
  -webkit-transform: scale(1);
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  -ms-transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

header.animate .logo{
  position: relative;
  top: -70px;
  transform: scale(0.6);
  -moz-transform: scale(0.6);
  -webkit-transform: scale(0.6);
}

header.animate nav ul li.expand{
  width:80px;
}

header.animate .stars{
  -webkit-box-shadow: 2px 6px 5px 1px rgba(0, 0, 0, 0.3);
  box-shadow: 2px 6px 5px 1px rgba(0, 0, 0, 0.3);
  
}

.slipper{
  position: absolute;
  z-index:10;
  background: url(https://www.olliehusbanddesign.co.uk/test/slippers.png) no-repeat transparent;
  background-size:cover;
  height: 150px;
  width:150px;
  left:55%;
  margin-left:-125px;
  top:60px;
}

.stars{
  position:absolute;
  background: url(http://www.theglassslipperbeautypageant.com/sitebuildercontent/sitebuilderpictures/sparkleblue.gif) repeat transparent;
  background-size:30%;
  width:140px;
  height:140px;
  left:55%;
  margin-left:-120px;
  top:66px;
  border-radius:50%;
  -webkit-animation: stars 2s linear infinite;
  -moz-animation: stars 2s linear infinite;
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  -ms-transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
  -webkit-box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.3);
  box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.3);
}

.content{
  position:relative;
  z-index:999;
  width:100%;
  background:#fff;
  margin-top:460px;
  -webkit-box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.3);
  box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.3);
}


.content .main{
  padding: 80px 0;
}


.clear{
  clear:both;
}

hr{
  border:0;
  border-bottom: #999 dashed 1px;
  margin: 25px 0;	
  width:100%;
  display:block;
  clear:both;
}

p, p strong{
  color: #999999;
  font-family: 'Raleway',sans-serif;
  font-size: 13px;
  line-height: 26px;
  margin: 20px 0;
}

figure{
  border: 1px solid #BDBDBD;
  background: #E0E0E0;
  padding: 5px;
}

figure figcaption{
  font-size:10px;
  color:#999;
  font-style:italic;
  width:100%;
  text-align:center;
  text-overflow: ellipsis-word;
}

.alignLeft{
  float: left;
  margin:20px 30px 50px 0;
}

.alignRight{
  float: right;
  margin:20px 0 20px 20px;
}

@-webkit-keyframes stars {
  from{
    background-position:left;
  }
  to{
    background-position:right;
  }
}
@-moz-keyframes stars {
  from{
    background-position:left;
  }
  to{
    background-position:right;
  }
}

              
            
!

JS

              
                $(document).ready(function(){
  $(window).bind("scroll", function(){
    var offsetTop = $('.content').offset().top,
        scrollTop = $(window).scrollTop() + 230;
    if(scrollTop >= offsetTop){
      $('header').addClass("animate");
    }
    else{
      $('header').removeClass("animate");
    }	
  }).trigger("scroll");
});
              
            
!
999px

Console