Skip to content
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
2 changes: 1 addition & 1 deletion css/layout1.sass
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ img
height: 600px
background:
image: url(../images/bird-bg.jpg)
size: auto 600px
size: cover
position: top center
attachment: fixed
overflow: hidden
Expand Down
6 changes: 5 additions & 1 deletion js/functions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
var pContainerHeight = $('.bird-box').height();
var $birdbox = $('.bird-box');
$(function() {
$birdbox.css('height', $(window).height());
});
var pContainerHeight = $birdbox.height();

$(window).scroll(function(){

Expand Down