Single Drop Down Menu 1.3

Drop down menus with personally made jQuery Plugins.

// Special Personal Plugins
;(function($){
	// Fade In
	$.fn.mySpecialFadeIn = function(){
		return $(this).css('opacity', 0).show().fadeTo('normal', 1);
	};

	// Fade Out
	$.fn.mySpecialFadeOut = function(){
		return $(this).fadeTo('normal', 0, function(){
			$(this).hide();
		});
	};
})(jQuery);

// DOM Ready
$(function(){
	$('.ddmenu').singleDropMenu({parentMO: 'ddmenu-hover', childMO: 'ddchildhover', timer: 1500, show: 'mySpecialFadeIn', hide: 'mySpecialFadeOut'});
});


Docs | Example 1 | Example 2 | Example 3
Back to Original Article