I hereby claim:
- I am bernhardmostrey on github.
- I am bernhardmostrey (https://keybase.io/bernhardmostrey) on keybase.
- I have a public key ASCJy4khy6UQMJ_GR05CrNW-KxHxqtcJ9EjcCmvpS7ZX7wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "darken(#428bca, 6.5%)", | |
"@brand-success": "#5cb85c", |
$(document).ready(function(){ | |
$(window).scroll( function(){ | |
/* Check the location of each desired element */ | |
$('.hideme').each( function(i){ | |
var bottom_of_object = $(this).offset().top + $(this).outerHeight() -180; | |
var bottom_of_window = $(window).scrollTop() + $(window).height(); | |
/* If the object is completely visible in the window, fade it it */ | |
if( bottom_of_window > bottom_of_object ){ | |
$(this).animate({'opacity':'1'},500); | |
} |