scrolling stuff
$(document).ready(function() {
/* Every time the window is scrolled ... */
$(window).scroll( function(){
/* Check the location of each desired element */
$('.hideme').each( function(i){
var bottom_of_object = $(this).position().top + $(this).outerHeight();
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);
}
});
});
jQuery(function($) {
$(window).load(function(){
$("ul.gallery li:lt(12)").each(function(i) {
$(this).delay((i++) * 50).fadeTo(500, 1);
})
});
$(window).scroll( function(){
$("ul.gallery li").each( function(i) {
var bottom_of_object = $(this).position().top + $(this).outerHeight();
var bottom_of_window = $(window).scrollTop() + $(window).height();
if( bottom_of_window > bottom_of_object ) {
$(this).fadeTo(500, 1);
}
});
});
});
// FLOWING-IN ICONS
$(function() {
$('ul#matrix li').each(function(i) {
$(this).delay((i++) * 100).fadeTo(500, 1);
})
});