#aSlider Super light jQuery slider controlled via Data Attributes
Alecaddd 2014
By Alessandro Castellani,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
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
-
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>
-
Activate the slider.
<div class="aslider" data-slide="aslider"> <!-- call the function and initialize the slider -->
-
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]