Learn how to use jQuery at the Blog

Portfolio Rafael Monroe « visit

  • Added 9 months ago
  • 61 Lines of Code shown
  • 9 Links of Interest
http://rafaelmonroe.com
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 Portfolio Rafael Monroe - http://rafaelmonroe.com

$(document).ready(function() {

	$.localScroll();
	
	$("#seta").hover(function() {
		$("#bloco-menu").animate({left:'190px'});
		$("#seta").fadeOut("fast");
		$("#twitter").animate({left:'205px', top:'40px'});
		$("#ultimo-projeto,#outros-projetos").fadeOut("slow");
	});
	
	$("#bloco-menu").hover(function() {
		   $("#legenda:hidden",this).fadeIn("normal");
	}, function() { 
		   $("#legenda:visible",this).fadeOut("normal");
	});
	
	$(".fechar").click(function() {
		$("#seta,#twitter-box").fadeIn("slow");
		$("#bloco-menu").fadeOut("normal").animate({left:'0px'}).fadeIn("slow");
		$("#ultimo-projeto,#outros-projetos").fadeIn("slow");
	});
	
	$("li").hover(function() {
		   $(".desc:hidden",this).fadeIn("slow");
	}, function() { 
		   $(".desc:visible",this).fadeOut("normal");
	});
	
	$("#ultimo-projeto,#outros-projetos,#twitter").draggable( 
		{ zIndex:9999, opacity:0.3, containment:'parent' }
	);
	
	$("#ultimo-projeto,#outros-projetos").fadeIn("slow");
	$("#twitter-box,#linkedin").fadeIn("fast");
	$("#outros-projetos").animate({left:'760px'});
	
	$("#escolha-bg").hover(function() {
		$("#escolha-bg-box").fadeIn("slow");
	});
	
		$("a#bg_padrao").click(function() { $("body").css("background-image","url('../img/bg.jpg')"); $("#escolha-bg-box").fadeOut("slow"); });		
		$("a#bg_campo").click(function() { $("body").css("background-image","url('../img/bg_campo.jpg')","background-position","center bottom"); $("#escolha-bg-box").fadeOut("slow"); });
		$("a#bg_garota").click(function() { $("body").css("background-image","url('../img/bg_garota.jpg')"); $("#escolha-bg-box").fadeOut("slow"); });
	
	$("#twitter").getTwitter({
		userName: "rafaelmonroe",
		numTweets: 7,
		loaderText: "Carregando...",
		slideIn: true,
		showHeading: true
	});
	
	$("#twitter-box").click(function() {
		$("#twitter").animate({top:'81px', left:'30px', opacity:'0.9'});
		$("#twitter").fadeIn("slow");
	});
	$(".fechar-twitter").click(function() {
		$("#twitter").animate({top:'81px', left:'-300px'});
	});
});