I’m looking for a simple javascript to create side panel with hiding after some action(ex. after clicking on some area). Something like this example but appearing from left side not from up to down as the example works.
Will be appreciated for any help 🙂
I’m looking for a simple javascript to create side panel with hiding after some
Share
You have 2 options. You can either use JQuery or scriptaculous to do this. There are plenty of examples and tutorials on the internet or you can simply use java script to this.
First download émile It’s a very simple javascript animation framework.
Since you didn’t provide any HTML markup, I’m assuming you have something like this.
and let’s say your side-panel element has a CSS style of
width:200px. Ok, now place a button somewhere and assign it a click event. Such asonclick="togglePanel()"Here is the content of the togglePanel function:
If you check the documentation of the emile framework you can do lot’s of other cool things.