responsive

onPause()

  • Available since: 1.2
  • Type: callback function

Callback function to be executed when autoplay is paused, i.e. when cursor enters accordion's direct children .jAccordion-slidesWrapper.

Dependencies

The described callback function is called only if the below listed conditions were met.

  • autoplay: true
  • pauseOnHover: true

Callback creation

Callback function is specified in the configuration section of the plugin.

$('selector').jAccordion({
	onPause : function() { 
		//Here goes your code, e.g. alert('Autoplay paused.');
		//You can call any public method using this.method()
	}
});

Demo 1

  • Source files of this demo are located in: Examples\callbackonPauseDemo1

Demo 1 demonstrates how to create your own function displaying when autoplay is paused and when it's resumed plus amount of time for which active slide should remain open. Demo also uses the opposite callback onResume().

Loading content...
slide1
slide2
slide3
slide4
slide5

jAccordion by maniacpc, exclusively for CodeCanyon