Skip to content
This repository was archived by the owner on Jul 27, 2020. It is now read-only.

Styled footer area #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 18 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery Parallax Plugin Demo</title>
Expand All @@ -16,8 +16,8 @@
//xPosition - Horizontal position of the element
//inertia - speed to move relative to vertical scroll. Example: 0.1 is one tenth the speed of scrolling, 2 is twice the speed of scrolling
//outerHeight (true/false) - Whether or not jQuery should use it's outerHeight option to determine when a section is in the viewport
$('#intro').parallax("50%", 0.1);
$('#second').parallax("50%", 0.1);
$('#intro').parallax("50%", 0.1);
$('#second').parallax("50%", 0.1);
$('.bg').parallax("50%", 0.4);
$('#third').parallax("50%", 0.3);

Expand Down Expand Up @@ -63,18 +63,20 @@ <h2>What Happens When JavaScript is Disabled?</h2>
</div> <!--#third-->

<div id="fifth">
<div class="story">
<p>Check out my new plugin <a href="http://www.sequencejs.com" title="Sequence.js">Sequence.js</a> for parallax effects and a whole lot more!</p>

<h2>Ian Lunn</h2>
<ul>
<li><strong>Twitter</strong>: <a href="http://www.twitter.com/IanLunn" title="Follow Ian on Twitter">@IanLunn</a></li>
<li><strong>GitHub</strong>: <a href="http://www.github.com/IanLunn" title="Follow Ian on GitHub">IanLunn</a></li>
<li><strong>Website</strong>: <a href="http://www.ianlunn.co.uk/" title="Ian Lunn Design">www.ianlunn.co.uk</a></li>
</ul>

<p>This demo is based on the <a href="http://www.nikebetterworld.com" title="Nike Better World">Nikebetterworld.com</a> website.</p>

<div class="story">
<article>
<h2>Ian Lunn</h2>
<ul>
<li><strong>Twitter</strong>: <a href="http://www.twitter.com/IanLunn" title="Follow Ian on Twitter">@IanLunn</a></li>
<li><strong>GitHub</strong>: <a href="http://www.github.com/IanLunn" title="Follow Ian on GitHub">IanLunn</a></li>
<li><strong>Website</strong>: <a href="http://www.ianlunn.co.uk/" title="Ian Lunn Design">www.ianlunn.co.uk</a></li>
</ul>
</article>
<article>
<p>This demo is based on the <a href="http://www.nikebetterworld.com" title="Nike Better World">Nikebetterworld.com</a> website.</p>
<p>Check out my new plugin <a href="http://www.sequencejs.com" title="Sequence.js">Sequence.js</a> for parallax effects and a whole lot more!</p>
</article>
<article>
<h2>Credits</h2>
<p>This plugin makes use of some scripts and images made by others:</p>
<ul>
Expand All @@ -84,6 +86,7 @@ <h2>Credits</h2>
<li><a href="http://www.sxc.hu/photo/1015485" title="Basketball Image">Basketball Image</a></li>
<li><a href="http://www.sxc.hu/photo/563767" title="Bottles Image">Bottles Image</a></li>
</ul>
</article>
</div> <!--.story-->
</div> <!--#fifth-->
</body>
Expand Down
47 changes: 42 additions & 5 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Plugin: jQuery Parallax
Version 1.1.3
Author: Ian Lunn
Author: Ian Lunn
Twitter: @IanLunn
Author URL: http://www.ianlunn.co.uk/
Plugin URL: http://www.ianlunn.co.uk/plugins/jquery-parallax/
Expand All @@ -15,7 +15,7 @@ License: http://creativecommons.org/licenses/by-sa/3.0/ (Attribution Share Alike
body{
margin: 0;
min-width: 980px;
padding: 0;
padding: 0;
}

p{
Expand All @@ -29,6 +29,14 @@ p, ul{
font-style:normal;
}

ul {
text-align: left;
}

li {
list-style: none;
}

img{
border: 0;
}
Expand All @@ -47,6 +55,35 @@ h2{
font-style:normal;
}

a {
transition: color 0.3s ease-in-out;
}

a, a:visited {
color: #666;
}

a:hover {
color: #111;
}

article {
width: 25%;
height: 280px;
text-align: center;
float: left;
background-color: #fff;
padding: 0 20px;
}

article:not(:first-child) {
margin-left: 5%;
}

article:nth-child(2) p:first-child {
padding-top: 20px;
}

#header h1, #pixels{
color: #48941A;
}
Expand All @@ -65,7 +102,7 @@ h2{
font-size: 2.5em;
padding: 80px 0 0 0;
text-align: center;
}
}

#nav{
list-style: none;
Expand Down Expand Up @@ -116,7 +153,7 @@ h2{
}

#fifth{
background: #ccc;
background: #ddd;
height: 400px;
margin: 0 auto;
padding: 40px 0 0 0;
Expand All @@ -133,4 +170,4 @@ h2{
padding: 100px 0 0 0;
position: relative;
width: 350px;
}
}