Created
September 27, 2012 10:33
-
-
Save innovationhero/3793363 to your computer and use it in GitHub Desktop.
Untitled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, body { | |
height:100%; | |
} | |
body { | |
width: 100%; | |
background: #ffcb00; | |
overflow: hidden; | |
} | |
#header{ | |
position: absolute; | |
z-index: 2000; | |
width: 235px; | |
top: 50px; | |
} | |
#header h1{ | |
font-size: 30px; | |
font-weight: 400; | |
text-transform: uppercase; | |
color: rgba(255,255,255,0.9); | |
text-shadow: 0px 1px 1px rgba(0,0,0,0.3); | |
padding: 20px; | |
background: #000; | |
} | |
#navigation { | |
margin-top: 20px; | |
width: 235px; | |
display:block; | |
list-style:none; | |
z-index:3; | |
} | |
#navigation a{ | |
color: #444; | |
display: block; | |
background: #fff; | |
background: rgba(255,255,255,0.9); | |
line-height: 50px; | |
padding: 0px 20px; | |
text-transform: uppercase; | |
margin-bottom: 6px; | |
box-shadow: 1px 1px 2px rgba(0,0,0,0.2); | |
font-size: 14px; | |
} | |
#navigation a:hover { | |
background: #ddd; | |
} | |
.content{ | |
right: 40px; | |
left: 280px; | |
top: 0px; | |
position: absolute; | |
padding-bottom: 30px; | |
} | |
.content h2{ | |
font-size: 110px; | |
padding: 10px 0px 20px 0px; | |
margin-top: 52px; | |
color: #fff; | |
color: rgba(255,255,255,0.9); | |
text-shadow: 0px 1px 1px rgba(0,0,0,0.3); | |
} | |
.content p{ | |
font-size: 18px; | |
padding: 10px; | |
line-height: 24px; | |
color: #fff; | |
display: inline-block; | |
background: black; | |
padding: 10px; | |
margin: 3px 0px; | |
} | |
.panel{ | |
min-width: 100%; | |
height: 98%; | |
overflow-y: auto; | |
overflow-x: hidden; | |
margin-top: -150%; | |
position: absolute; | |
background: #000; | |
box-shadow: 0px 4px 7px rgba(0,0,0,0.6); | |
z-index: 2; | |
-webkit-transition: all .8s ease-in-out; | |
-moz-transition: all .8s ease-in-out; | |
-o-transition: all .8s ease-in-out; | |
transition: all .8s ease-in-out; | |
} | |
.panel:target{ | |
margin-top: 0%; | |
background-color: #ffcb00; | |
} | |
#home:target ~ #header #navigation #link-home, | |
#portfolio:target ~ #header #navigation #link-portfolio, | |
#about:target ~ #header #navigation #link-about, | |
#contact:target ~ #header #navigation #link-contact{ | |
background: #000; | |
color: #fff; | |
} | |
#works { | |
padding: 15px 0px; | |
} | |
#works li{ | |
display: inline; | |
} | |
#works li a{ | |
padding-right: 10px; | |
} | |
#works img { | |
box-shadow: 1px 1px 2px rgba(0,0,0,0.3); | |
padding: 12px; | |
background: rgba(255,255,255,0.9); | |
} | |
#form p{ | |
background: #fff; | |
color: #000; | |
} | |
#form input, #form textarea{ | |
background: #000; | |
color: #fff; | |
border: none; | |
} | |
#form textarea{ | |
width: 493px; | |
height: 100px; | |
} | |
#form label{ | |
padding-right: 10px; | |
float: left; | |
} | |
.footnote a{ | |
color: #ddd; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--[if lt IE 7 ]> <html class="ie ie6 no-js" lang="en"> <![endif]--><!--[if IE 7 ]> <html class="ie ie7 no-js" lang="en"> <![endif]--><!--[if IE 8 ]> <html class="ie ie8 no-js" lang="en"> <![endif]--><!--[if IE 9 ]> <html class="ie ie9 no-js" lang="en"> <![endif]--><!--[if gt IE 9]><!--><html class="no-js" lang="en"><!--<![endif]--> | |
<head> </head> | |
<html> | |
<body> <!-- Codrops top bar --> <div class="codrops-top"> <a href="http://tympanus.net/Development/Arctext/"> <strong>« Previous Demo: </strong>Arctext.js – Curving Text with CSS3 and jQuery </a> <span class="right"> <a href="http://tympanus.net/codrops/2012/01/30/page-transitions-with-css3/"> <strong>Back to the Codrops Article</strong> </a> </span> <div class="clr"></div> </div><!--/ Codrops top bar --> <!-- Home --> <div id="home" class="content"> <h2>Home</h2> <p>So you want a single page website, uh? Well, if you follow this tutorial you will be able to create a very nifty one-pager. Check out the rest of the sections on this page so you can see for yourself what am I talking about.</p> <p>This page consists of different panels that will slide or appear when clicking on the respective link.</p> <p>With the general sibling selector we can change the color of the "selected" panel link.</p> </div> <!-- /Home --> <!-- Portfolio --> <div id="portfolio" class="panel"> <div class="content"> <h2>Portfolio</h2> <p>Some really nice portfolio shots:</p> <ul id="works"> <li><a href="http://dribbble.com/shots/394177-Sheriff-Woody"><img src="images/portfolio_01.jpeg" width="250"></a></li> <li><a href="http://dribbble.com/shots/392403-Spaceman"><img src="images/portfolio_02.jpeg" width="250"></a></li> <li><a href="http://dribbble.com/shots/388799-Harvey-Birdman"><img src="images/portfolio_03.jpeg" width="250"></a></li> </ul> <p class="footnote">Dribbble shots by <a href="http://dribbble.com/stuntman">Matt Kaufenberg</a>.</p> </div> </div> <!-- /Portfolio --> <!-- About --> <div id="about" class="panel"> <div class="content"> <h2>About</h2> <p>It is a paradisematic country, in which roasted parts of sentences fly into your mouth.</p> <p>Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum decided to leave for the far World of Grammar.</p> <p>The Big Oxmox advised her not to do so, because there were thousands of bad Commas, wild Question Marks and devious Semikoli, but the Little Blind Text didn’t listen.</p> <p>She packed her seven versalia, put her initial into the belt and made herself on the way.</p> </div> </div> <!-- /About --> <!-- Contact --> <div id="contact" class="panel"> <div class="content"> <h2>Contact</h2> <p>When she reached the first hills of the Italic Mountains, she had a last view back on the skyline of her hometown Bookmarksgrove, the headline of Alphabet Village and the subline of her own road, the Line Lane.</p> <p>Pityful a rethoric question ran over her cheek, then she continued her way. On her way she met a copy.</p> <form id="form"> <p><label>Your Name</label><input type="text" /></p> <p><label>Your Email</label><input type="text" /></p> <p><label>Your Message</label><textarea></textarea></p> </form> </div> </div> <!-- /Contact --> <!-- Header with Navigation --> <div id="header"> <h1>Page Transitions with CSS3</h1> <ul id="navigation"> <li><a id="link-home" href="#home">Home</a></li> <li><a id="link-portfolio" href="#portfolio">Portfolio</a></li> <li><a id="link-about" href="#about">About Me</a></li> <li><a id="link-contact" href="#contact">Contact</a></li> </ul> <!-- Demo Nav --> <nav id="codrops-demos"> <a class="current-demo" href="#home">Demo 1</a> <a href="index2.html#home">Demo 2</a> <a href="index3.html#home">Demo 3</a> </nav> </div><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script src="http://tympanus.net/codrops/adpacks/csscustom.js"></script> <script src="http://tympanus.net/codrops/wp-content/plugins/oiopub-direct/js.php?type=banner&align=center&zone=1"></script> </body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","fontsize":"70","seethrough":"","prefixfree":"1","page":"html"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment