Simple jQuery menu slider
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md Update README.md Jul 9, 2013
jquery.menuSlider.js Update Jul 13, 2013
jquery.menuSlider.min.js Update Jul 13, 2013
license.md Create license.md Jul 7, 2013
menuSlider.jquery.json Update Jul 13, 2013

README.md

menuSlider

Simple jQuery menu slider

Steps to use the Slider:

Wrap your navigation menu in a container as shown:


<div id="slideContainer">
	<ul>
		<li class="selectedMenuItem">One</li>
		<li>Two</li>
		<li>Three</li>
		<li>Four</li>
	</ul>
</div>

Call the menuSlider on the container ({Border Thickness, Border Style, Border Color, Sides of Border, Background Color, Background Border Radius, Transition Speed, Transition Type}):


<script>
$("#slideContainer").menuSlider({thickness:"2px",borderStyle:"solid",borderColor:"blue",borderSides:"border-bottom", 
				 bgColor:"rgba(0,0,150,0.4)", bgRadius:"10px", 
				 speed:.4, tStyle:"linear"});
</script>

Note: Ensure to include the JQuery library

The item the slider returns to has an class of "selectedMenuItem". To switch which item is the current item, change which item has the selectedMenuItem class. I achieved it above by adding a click function in the script (Not included in download) because I wasn't linking to any pages.

See Demo Here