🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL


Documentation

#aSlider Super light jQuery slider controlled via Data Attributes

By Alessandro Castellani, Alecaddd 2014

This is a plugin based on jQuery which allows you to insert a content carousel inside your web page and easily control it via HTML data attributes

aSlider uses jQuery 2.0.0 and a bunch of icons from Font-Awesome v4.1

Try the Demo

Getting Started

  • Download the whole package and upload it on your server
  • You can remove the img/ folder or use it to store your files
  • Past the HTML code inside your site

Documentation

  1. HTML syntax.

    <div class="aslider"> 	<div id="s1" class="slide"> 	 	<img src="your-image.jpg"> 	 	<div class="caption"><h2>Your Title</h2><p>your description.</p></div> 		<a href="#">your link</a> 	</div> 	<div id="s2" class="slide"> 	 	<img src="your-image.jpg"> 	 	<div class="caption"><h2>Your Title</h2><p>your description.</p></div> 		<a href="#">your link</a> 	</div> 	<div id="s3" class="slide"> 	 	<img src="your-image.jpg"> 	 	<div class="caption"><h2>Your Title</h2><p>your description.</p></div> 		<a href="#">your link</a> 	</div> </div>
  2. Activate the slider.

    <div class="aslider" data-slide="aslider"> <!-- call the function and initialize the slider -->
  3. Control the available options.

    <div class="aslider" data-slide="aslider" data-speed="500" data-wait="3000" data-preview="true" data-dots="true"> 
    • speed: Control the duration of the cross fade transition effect (in milliseconds)
    • wait: Control the waiting time between the transitions (in milliseconds)
    • preview: Activate/Deactivate the visualization of a portion of the next slide during the arrows mouseover (bool)
    • dots: Activate/Deactivate the visualization of the navigation dots (bool)

IE support

Sorry, obsolete browsers like IE 6,7 and 8 are not supported

Help

If you have some trouble please let me know [email protected]


You May Also Like