summaryrefslogtreecommitdiffstats
path: root/webroot/js/functions.js
blob: 4118525468347faee5e22e76a08b47cec2652af2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
jQuery(document).ready(function($) {

//Portfolio Hover Effect
	$('.portfolio-small li img, .portfolio-list li img').hover(function() {
		$(this).children('a').show();
		$('.portfolio-small li img, .portfolio-list li img').stop().animate({ opacity: .5 }, 300);
		$(this).stop().css('opacity', 1);
	}, function() {
		$('.portfolio-small li img, .portfolio-list li img').stop().animate({ opacity: 1 }, 300);
	});

//Homepage Screenshot Scroll
$(".scrollable").scrollable();

// Tipsy Tooltips
$('.tooltip').tipsy({fade: true});
$('.tooltip.north').tipsy({fade: true, gravity: 's'});
$('.tooltip.east').tipsy({fade: true, gravity: 'w'});
$('.tooltip.west').tipsy({fade: true, gravity: 'e'});
// Form Tooltips
$('form [title]').tipsy({fade: true, trigger: 'focus', gravity: 'w'});	

});