Skip to content

Footer appears only after page is fully loaded #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits 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
17 changes: 11 additions & 6 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@charset "UTF-8";
@charset "UTF-8";
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
Expand Down Expand Up @@ -443,17 +443,21 @@ th {
.nine.columns {
width: 74.0%; }

.ten.columns {
.ten.columns
{
width: 82.6666666667%; }

.eleven.columns {

.eleven.columns {
width: 91.3333333333%; }

.twelve.columns {

.twelve.columns {
width: 100%;
margin-left: 0; }

.one-third.column {

.one-third.column {
width: 30.6666666667%; }

.two-thirds.column {
Expand Down Expand Up @@ -998,7 +1002,7 @@ img {
color: black; }

.blog-posts {
margin-top: 100px; }
margin-top: 100px; }
.blog-posts .post {
border: 1px solid #e1e1e1;
padding: 20px 20px 0;
Expand All @@ -1012,6 +1016,7 @@ img {
transform: translate(-100px, 20px); }

footer {
display: none;
background: black;
color: white;
padding: 40px 0;
Expand Down
9 changes: 4 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<meta charset="utf-8">
<title>BlackBird Co.</title>
<title>Changing the title</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand All @@ -24,7 +23,7 @@ <h1>Unique Style</h1>
<div class="clothes-pics">
<div class="row img-row">
<figure class="columns four"><img src="images/model1.jpg">
<figcaption>BlackBird Sweater - <strong>$135</strong></figcaption>
<figcaption>BlackBird Sweater - <strong>$135</strong></figcaption>
</figure>
<figure class="columns four"><img src="images/model2.jpg">
<figcaption>BlackBird Trousers - <strong>$135</strong></figcaption>
Expand Down Expand Up @@ -72,7 +71,7 @@ <h1>Rich History</h1>
<div class="blog-posts row">
<div class="post columns four post-1">
<h5>Post Title</h5><img src="images/posts/one.jpg">
<p>Incididunt ut labore et dolore magna.</p>
<p>Incidiunt ut labre et dolore magna.</p>
<p><a href="" class="button">Read More</a></p>
</div>
<div class="post columns four post-2">
Expand Down
8 changes: 7 additions & 1 deletion js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ $(window).scroll(function(){
}


// Floating Elements

// Floating Elements

if(wScroll > $('.blog-posts').offset().top - $(window).height()){

Expand All @@ -58,3 +59,8 @@ $(window).scroll(function(){

}
});


$(document).ready(function(){
$("footer").css("display","block");
});