MetaLab Design « 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 MetaLab Design - http://metalabdesign.com
$(document).ready(function(){
$("a[rel='external']").attr('target','_blank'); //automatically open external links open in new window/tab
$("#topnav li a").addClass("hovFade"); // for some things we add the hover fade class here instead of adding a class manually
$("#topnav li a:not(:last)").bind("click", function(){ // nicify the site nav depressed states
$("#topnav li a").css("background-position", "top left");
$(this).css("background-position", "bottom left");
});
var oldOpacity = "0";
$(".hovFade").hover(
function () {
oldOpacity = $(this).css("opacity");
$(this).animate({opacity: '1'},{"duration":200});
},
function () {
$(this).animate({opacity: oldOpacity},{"duration":200});
}
);
});
$(document).ready(function(){
$('.fzoom').fancybox({
'zoomOpacity' : true,
'overlayShow' : true,
'zoomSpeedIn' : 300,
'zoomSpeedOut' : 300,
'overlayOpacity': .3
});
switchTo('web');
$("#scroller-web-window").scrollable({
easing: 'swing',
size: '1',
items: '#scroller-web-wrap',
loop: 'true',
next: '#button-next-project-web' ,
navi: '#project-dots-web',
naviItem: 'a',
keyboard: true,
speed: '800'
});
$("#scroller-iphone-window").scrollable({
easing: 'swing',
size: '1',
items: '#scroller-iphone-wrap',
loop: 'true',
next: '#button-next-project-iphone' ,
navi: '#project-dots-iphone',
naviItem: 'a',
keyboard: true,
speed: '800'
});
$("#scroller-desk-window").scrollable({
easing: 'swing',
size: '1',
items: '#scroller-desk-wrap',
loop: 'true',
next: '#button-next-project-desk' ,
navi: '#project-dots-desk',
naviItem: 'a',
keyboard: true,
speed: '800'
});
//set up events to handle browsing project categories
$("#projects .web a ").bind("click", function(){ switchTo("web"); });
$("#projects .iphone a ").bind("click", function(){ switchTo("iphone");});
$("#projects .desktop a ").bind("click", function(){ switchTo("desktop");});
});
var curSect = "";
function switchTo(which){
jQuery.easing.def = "easeInOutSine";
h = $(".project").height(); //so we don't have to hardcode the row height;
if (which == curSect) { return; } //don't switch if we are on the selected tab
if (which == "web"){
$(".button-next-project").hide();
$("#button-next-project-web").show();
$(".project-dots").hide();
$("#project-dots-web").show(300);
$("#project-type-nav span").animate({opacity: '.65'}, { "duration": 300 } );
$("#project-type-nav a").css("cursor", "pointer");
$("#project-type-nav .web a").css("cursor", "default");
$("#project-type-nav .current").animate({top: "-1px" }, { "duration": 300 } );
$("#project-type-nav .web span").animate({opacity: '1.0'}, { "duration": 300 } );
$("#scroller-vertical").animate({top: '0'}, { "duration": 300 } );
}
if (which == "iphone"){
$(".button-next-project").hide();
$("#button-next-project-iphone").show();
$(".project-dots").hide();
$("#project-type-nav span").animate({opacity: '.65'}, { "duration": 300 } );
$("#project-type-nav a").css("cursor", "pointer");
$("#project-type-nav .iphone a").css("cursor", "default");
$("#project-type-nav .current").animate({ top: "35px" }, { "duration": 300 } );
$("#project-type-nav .iphone span").animate({opacity: '1.0'}, { "duration": 300 } );
$("#scroller-vertical").animate({top: "-"+(h)+"px"}, { "duration": 300 } );
$("#project-dots-iphone").show(300);
}
if (which == "desktop"){
$(".button-next-project").hide();
$("#button-next-project-desk").show();
$(".project-dots").hide();
$("#project-type-nav span").animate({opacity: '.65'}, { "duration": 300 } );
$("#project-type-nav a").css("cursor", "pointer");
$("#project-type-nav .desktop a").css("cursor", "default");
$("#project-type-nav .current").animate({ top: "71px" }, { "duration": 300} );
$("#project-type-nav .desktop span").animate({opacity: '1.0'}, { "duration": 300 } );
$("#scroller-vertical").animate({top: "-"+(h*2)+"px"}, { "duration": 300 } );
$("#project-dots-desk").show(300);
}
curSect = which;
}
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.