responsive

onAccordionMouseLeave

  • Available since: v1.2
  • Type: event

Triggers when cursor leaves the accordion's direct children .jAccordion-slidesWrapper.

Callback creation

Callback can be attached to the event in the configuration section of the plugin:

$('selector').jAccordion({
	onAccordionMouseLeave : function() { 
		//Here goes your code, e.g. alert('Cursor leaves accordion.');
		//You can call any API method using this.method(), e.g. alert(this.isPaused());
	}
});

or it can be attached after initialization using API methods bind() or on():

$('selector').data('jAccordion').bind('onAccordionMouseLeave', function() { 
	//Here goes your code, e.g. alert('Cursor leaves accordion.');
	//You can call any API method using this.method(), e.g. alert(this.isPaused());
});

Demo 1

Demo 1 demonstrates how to create your own function displaying when cursor leaves accordion below it. Background color of accordion is also changed.

Note: Event is not triggered when cursor leaves accordion but when it leaves .jAccordion-slidesWrapper.

Loading content...
slide1
slide2
slide3
slide4
slide5

jAccordion by maniacpc, exclusively for CodeCanyon