will explain how to create a slide panel jquery effect with an example. Jquery provides various sliding methods such as
- slideDown()
- slideUp()
- slideToggle()
I used slideToggle method to create jquery slide panel effect.
slideToggle Method:
First we will understand what is this slideToggle Method.
- As per the name of this method it changes between the slideDown and slideUp methods
- If the element have been slideDown it changes it will Slide them Up and vice versa.
See the slideToggle example
I created one div with id ‘slide panel jquery‘.
You can add your own content in this slide panel jquery div.
And for sliding button I created one paragraph with class ‘jquery slide‘.
And I added some CSS stuff as shown below.
And finally to create slide panel jquery simply add below jquery code
The syntax of slideToggle is
It will take two parameters Speed and Callback both are optional
- Speed parameter can be: “slow”, “fast”, milliseconds.
- Callback parameter is a function that will execute after the sliding completes.
I hope you understand the slide panel jquery example tutorial
Here is the Jquery Slide Panel Demo .
No comments:
Post a Comment