Submit your widget

Slidorion-auto play accordion image slider effect

Created 12 years ago   Views 32257   downloads 6737    Author slidorion
Slidorion-auto play accordion image slider effect
View DemoDownload
97
Share |

A combination of an image slider and an accordion, the slidorion displays beautiful images along with a variable length description. With images linked to each tab, and accompanied by a large array of effects, the slidorion is a great alternative to the traditional jQuery slider.

Usage

Import jQuery, jQuery UI and slidorion

<link rel="stylesheet" href="css/slidorion.css" />

<script src="js/jquery.min.js"></script>
<script src="js/jquery.easing.js"></script>
<script src="js/jquery.slidorion.js"></script>

HTML Structure

<div id="slidorion">
	<div id="slider">
		<div class="slider-image" rel="section1">
			<img src="sample.jpg" width="500" height="400" />
		</div>
		<div class="slider-image" rel="section2">
			<img src="sample.jpg" width="500" height="400" />
		</div>
		<div class="slider-image" rel="section3">
			<img src="sample.jpg" width="500" height="400" />
		</div>
	</div>
	<div id="accordion">
		<div class="header"><a class="slider-link" rel="section1">Kung Fu Panda 2</a></div>
		<div class="content">
			<!-- CONTENT GOES HERE -->
		</div>
		<div class="header"><a class="slider-link" rel="section2">The Dark Knight</a></div>
		<div class="content">
			<!-- CONTENT GOES HERE -->
		</div>
		<div class="header"><a class="slider-link" rel="section3">Hot Fuzz</a></div>
		<div class="content">
			<!-- CONTENT GOES HERE -->
		</div>
	</div>
</div>

Basic Initialising

<script>
$(document).ready(function(){
	$('#slidorion').slidorion();
});
</script>

Initialising With Options

<script>
$(document).ready(function(){
	$('#slidorion').slidorion({
		speed: 1000,
		interval: 4000,
		effect: 'slideLeft'
	});
});
</script>

The article source:http://www.slidorion.com/