responsive

accordionAutoSize

  • Available since: v1.2
  • Type: option
  • Data type: Boolean
  • Allowed values: true, false
  • Default value: false

Specifies whether size (width/height) of accordion is automatically adjusted to fit size of content but max size (set via CSS) can't be exceeded unless value of option activeSlideAutoHeight is set to true.

Example:

$('.accordion').jAccordion({
	accordionAutoSize : true,
	inactiveSlideSize : 50
});

Dependencies

The described option only takes effect if the below listed conditions were met.

  • inactiveSlideSize: > 0

Demo 1

Demo 1 demonstrates behaviour of the plugin with the described option enabled. Vertical accordion is used.

Loading content...
slide1
slide2
slide3
slide4
slide5

Demo 2

Demo 2 demonstrates behaviour of the plugin with the described option enabled. Horizontal accordion is used.

Loading content...
slide1
slide2
slide3
slide4
slide5

Demo 3

Demo 3 demonstrates behaviour of the plugin with the described option disabled. Vertical accordion is used.

Loading content...
slide1
slide2
slide3
slide4
slide5

Demo 4

Demo 4 demonstrates behaviour of the plugin with the described option disabled. Horizontal accordion is used.

Loading content...
slide1
slide2
slide3
slide4
slide5

jAccordion by maniacpc, exclusively for CodeCanyon