Abstract Human « visit
This is my Source Code and I don't want to show it here
View Source Code only (as overlay)
// That code snippet belongs to Abstract Human - http://abstracthuman.com
$(function(){
$('#navanim .about a')
.css( {backgroundPosition: "0 0"} )
.mouseover(function(){
$(this).stop().animate({backgroundPosition:"(0 -20px)"}, {duration:300})
})
.mouseout(function(){
$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:200, complete:function(){
$(this).css({backgroundPosition: "0 0"})
}})
})
$('#navanim .blog a')
.css( {backgroundPosition: "-392px 0"} )
.mouseover(function(){
$(this).stop().animate({backgroundPosition:"(-392px -20px)"}, {duration:300})
})
.mouseout(function(){
$(this).stop().animate({backgroundPosition:"(-392px 0)"}, {duration:200, complete:function(){
$(this).css({backgroundPosition: "-392px 0"})
}})
})
$('#navanim .webdesign a')
.css( {backgroundPosition: "-784px 0"} )
.mouseover(function(){
$(this).stop().animate({backgroundPosition:"(-784px -20px)"}, {duration:300})
})
.mouseout(function(){
$(this).stop().animate({backgroundPosition:"(-784px 0)"}, {duration:200, complete:function(){
$(this).css({backgroundPosition: "-784px 0"})
}})
})
$('#navanim .illustration a')
.css( {backgroundPosition: "-1176px 0"} )
.mouseover(function(){
$(this).stop().animate({backgroundPosition:"(-1176px -20px)"}, {duration:300})
})
.mouseout(function(){
$(this).stop().animate({backgroundPosition:"(-1176px 0)"}, {duration:200, complete:function(){
$(this).css({backgroundPosition: "-1176px 0"})
}})
})
$('#navanim .photography a')
.css( {backgroundPosition: "-1568px 0"} )
.mouseover(function(){
$(this).stop().animate({backgroundPosition:"(-1568px -20px)"}, {duration:300})
})
.mouseout(function(){
$(this).stop().animate({backgroundPosition:"(-1568px 0)"}, {duration:200, complete:function(){
$(this).css({backgroundPosition: "-1568px 0"})
}})
})
$('#navanim .contact a')
.css( {backgroundPosition: "-1960px 0"} )
.mouseover(function(){
$(this).stop().animate({backgroundPosition:"(-1960px -20px)"}, {duration:300})
})
.mouseout(function(){
$(this).stop().animate({backgroundPosition:"(-1960px 0)"}, {duration:200, complete:function(){
$(this).css({backgroundPosition: "-1960px 0"})
}})
})
});
$(function() {
$('#gallery').cycle({
fx: 'scrollDown',
speedIn: 2000,
speedOut: 500,
easeIn: 'bounceout',
easeOut: 'backin',
delay: -2000,
pager: '#pager'
});
});
$(function() {
$('ul.hover_block li').hover(function(){
$(this).find('img').animate({top:'109px'},{queue:false,duration:500});
}, function(){
$(this).find('img').animate({top:'0px'},{queue:false,duration:500});
});
});
$(document).ready(function(){
$("a[rel^='prettyOverlay'],a[rel^='gallery']").prettyPhoto({
animationSpeed: 'normal', /* fast/slow/normal */
padding: 40, /* padding for each side of the picture */
opacity: 0.8, /* Value betwee 0 and 1 */
showTitle: true, /* true/false */
allowresize: true /* true/false */
});
});
this.tooltip = function(){
/* CONFIG */
xOffset = 10;
yOffset = 20;
// these 2 variable determine popup's distance from the cursor
// you might want to adjust to get the right result
/* END CONFIG */
$("a.tooltip").hover(function(e){
this.t = this.title;
this.title = "";
$("body").append("<p id='tooltip'>"+ this.t +"</p>");
$("#tooltip")
.css("top",(e.pageY - xOffset) + "px")
.css("left",(e.pageX + yOffset) + "px")
.fadeIn("fast");
},
function(){
this.title = this.t;
$("#tooltip").remove();
});
$("a.tooltip").mousemove(function(e){
$("#tooltip")
.css("top",(e.pageY - xOffset) + "px")
.css("left",(e.pageX + yOffset) + "px");
});
};
// starting the script on page load
$(document).ready(function(){
tooltip();
});
Syndicate
Categories
Statistics
There are 330 Sites with 745 Links of Interest in 18 Categories. The latest Site was added 4 months ago.
About
This is a project by Sebastian Senf, for his part jQuery user and lover too. Follow me.