Search code examples
jquerycssslideraccordionkwicks

Having trouble using Kwicks to open first li of accordion slider


I have tried a few different methods to have the first li of the accordion slider open by default but nothing is working properly.

I have tried to add the class active but it doesn't do anything unless the inline style is set to 686px. If I add that it changes the other images as well.

I'm sure it a simple solution that I am over looking.

http://roofing.kellykruschel.com/


Solution

  • Use something like this , working FIDDLE

    KWICKS 2.0

    $('.kwicks').kwicks('expand', 0);
    

    KWICKS 1.5

     $('.kwicks').kwicks({
        size: 321,
        max : 686,
        spacing : 0,
        behavior: 'menu',
        sticky :true
        });
    });