Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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

About

Simple jQuery menu slider

Resources

License

Packages

No packages published
You can’t perform that action at this time.