Sliding-Panel is a project mainly written in JavaScript, it's free.
an easy, lightweight, unobtrusive way to display examples, help, options... In a side retractable panel
Sliding Panel is a lightweight, unobtrusive, yet extremely useful and effective jQuery plugin.
Its goal is to provide a simple way to turn any DOM element into a retractable, sliding panel. It was created to fulfill the need of showing examples on unoome (in french only for the moment), a service aimed at small/medium enterprises/associations with no IT skill to easily create websites. So a really easy and intuitive help was needed, and that's how Sliding Panel was born.
Hopefully, it was designed with extensibility in mind, so you can use it not only to display help or examples, but also to display anything you want : an options panel for example. Just call :
$(your_DOM_element).slidingPanel();
And you're ready to go. The flexibility given by the settings should allow you to tune the plugin the way you like. Of course, it comes with a default CSS, but you can customize it to make it fit your needs.
Just call:
$('#example').slidingPanel(options);
Just any valid HTML element:
<div id="example">A nice looking example...</div>
A CSS file is included in the downloadable package. But you might want to add some custom CSS to make the integration more seamless. The CSS looks like this:
.slidingpanel_tab {
background-color: #eee ;
color: #aaa ;
text-align: center;
font-size: 18px;
line-height: 22px;
cursor: pointer;
padding: 2px;
}
You can edit it the way you want, all the important CSS is set by the plugin itself, so there is no risk that you break something. However, to facilitate the updates, I would highly recommend you to leave this file untouched and create another one which contain all your custom CSS rules, possibly overriding the default ones.
There are a few options to make Sliding Panel more flexible. Here they are, with their default values: