Slidebars API

Slidebars 2 features an API to give you full control of your off-canvas areas.

.init()

The .init() method is used to initialize the Slidebars framework.

.exit()

The .exit() method is used to disable the Slidebars framework.

.css()

The .css() method is used to reset inline CSS set by Slidebars.

.open()

The .open() method is used to open a Slidebar.

.close()

The .close() method is used to close a Slidebar.

.toggle()

The .toggle() method can be used to open or close a Slidebar.

.isActive()

The .isActive() method can be used to check if Slidebars has been initiated.

.isActiveSlidebar()

The .isActiveSlidebar() method can be used to check if a specific Slidebar is active.

.getActiveSlidebar()

The .getActiveSlidebar() method can be used to retrive the id of the active Slidebar.

.getSlidebars()

The .getSlidebars() method can be used to retrive an array of all registered Slidebar id's.

.getSlidebar()

The .getSlidebar() method can be used to retrive all information about a specific Slidebar.

Slidebars
Adchsm

Hi, I'm Adam.

I'm a freelance website designer and front-end developer in BCN.

Left and Right

Top and Bottom

Multiple Same Side

Animation Styles

Mobile Only

Custom Widths and Heights

Custom Transition Durations

Callbacks

Events