Skip to content

Instantly share code, notes, and snippets.

View bernhardmostrey's full-sized avatar

Bernhard Mostrey bernhardmostrey

View GitHub Profile

Keybase proof

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:

@bernhardmostrey
bernhardmostrey / config.json
Created February 23, 2016 18:11 — forked from anonymous/config.json
Bootstrap Customizer Config
{
"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",
@bernhardmostrey
bernhardmostrey / scroller.js
Created April 1, 2015 07:45
Scroll Fade In
$(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);
}