.header
height 60px
background #000
&--fixed
position fixed
left 0
top 0
$(window).scroll(function() {
var container = $('.header');
var status = $(this).offsetTop >= container.height() ? true : false;
container.toggleClass('.header--fixed', status);
});