Project Avant Facebook Page Project Avant Twitter Page

tutorial #1: Slide Toggle

In this demonstration, you will, also, see how to create a slide-effect toggle. jQuery allows you to show and hide elements, and control the speed of how quickly or gradually it can hide the content. You will learn to construct the jQuery code needed and the purpose of each line, as well as how to create the toggle in HTML and CSS.

Below is a demonstration of side toggle

Avatar Is Currently The Highest Grossing Movie Of All Time

The How-To


<div id="toggle">
<p>Avatar Is Currently The Highest Grossing Movie Of All Time</p>

<input type="button" id="button" value="Toggle" />
#toggle {

#toggle p {

// This is needed to make the document ready and functional.
//This function will trigger the event, everytime the button form is click on. 
//This method will toggle the denoted elements to slide up or down.  
//In the the ".slideToggle()" method, you can set the speed of the toggle, the values are "fast" and "slow"  
});//Closes the function.