Specifies which method of scaling is applied to images with class jAccordion-img. Images without class jAccordion-img are not affected by this option.
$('.accordion').jAccordion({ scaleImgs : 'fitWidth' });
Demo 1 demonstrates behaviour of the plugin with the described option set to 'fitWidth'. The second image doesn't have class jAccordion-img so the scaling method is not applied to it. Resize the window to see that size of images is adjusted correctly. Horizontal accordion is used.
Demo 2 demonstrates behaviour of the plugin with the described option set to 'fitWidth'. The second image doesn't have class jAccordion-img so the scaling method is not applied to it. Resize the window to see that size of images is adjusted correctly. Vertical accordion is used.
Demo 3 demonstrates behaviour of the plugin with the described option set to 'fitHeight'. The third image doesn't have class jAccordion-img so the scaling method is not applied to it. Resize the window to see that size of images is adjusted correctly. Horizontal accordion is used.
Demo 4 demonstrates behaviour of the plugin with the described option set to 'fitHeight'. The third image doesn't have class jAccordion-img so the scaling method is not applied to it. Resize the window to see that size of images is adjusted correctly. Vertical accordion is used.
Demo 5 demonstrates behaviour of the plugin with the described option set to 'fit'. The fourth image doesn't have class jAccordion-img so the scaling method is not applied to it. Resize the window to see that size of images is adjusted correctly. Horizontal accordion is used.
Demo 6 demonstrates behaviour of the plugin with the described option set to 'fit'. The fourth image doesn't have class jAccordion-img so the scaling method is not applied to it. Resize the window to see that size of images is adjusted correctly. Vertical accordion is used.
jAccordion by maniacpc, exclusively for CodeCanyon