GrassHopperPebbles.com Demos

JQuery Plugins

gpImageRotate 0.5 - Portfolio with Thumb Navigation

The following example displays the gpImageRotate plugin with portfolio option (mode: portfolio). This option is similar to the carousel mode option. Set the interval option - the amount of time (in milliseconds) that you want the portfolio to change. For instance, 5000 milliseconds = 5 seconds.

I also set the primary navigation to display as thumbs below the images.

The image description is set to slide in on the x-axis when the user moves their mouse over the image.

$(document).ready(function(){
	$("#gpImageRotateCntnr").gpImageRotate({
		mode: 'portfolio',
		interval: 8000,
		speed: 2000,
		data_map: {
			image_name: 'name',
			url_name: 'url',
			image_title: 'image_title',
			image_desc: 'image_desc'
		},
		primary_nav: {'display': 'bottom', 'display_type': 'thumb'},
		side_nav: {'display': 'onhover'},
		desc_display: {'display': 'onhover', 'display_type': 'slideX'},
		image_url: "portfolio.php'",
		base_path: "images/"
	});
});
#gpImageRotateCntnr {
	float:left;
	width:400px;
	margin-left:40px;
	margin-bottom:20px;
}

.gpImageRotate-Primary-Nav {
	float:left;
	width:400px;
	height:40px;
	margin-bottom:10px;
	display:none;
	background-color:#727272;
}

.gpImageRotate-Primary-Nav ul {
	float:left;
	list-style:none;
	margin: 5px 0 0 0;
	padding:0;
	width:400px;
}

.gpImageRotate-Primary-Nav ul li {
	float:left;
	display:block;
	cursor:pointer;
	margin-left:5px;
	padding:0;
}

.gpImageRotate-Primary-Nav ul li.gpImageRotate-nav-thumb img {
	border: thin solid #000;
}

.gpImageRotate-Primary-Nav ul li.gpImageRotate-nav-thumb-selected img {
	border-color:#F0A000;
}

.gpImageRotate-Primary-Nav ul li.gpImageRotate-nav-thumb img:hover {
	border-color:#0000FF;
}

.gpImageRotate-SlideCntnr {
	position:relative;
	width:400px;
	height:400px;
	overflow:hidden;
	margin:0;
	padding:0;
}

.gpImageRotate-Slider {
	position:absolute;
	left:0;
	top:0;
	width:5000px;
	margin:0;
	padding:0;
}

a.gpImageRotate-PrevBtn, a.gpImageRotate-NextBtn {
	position:absolute;
	background-image: url("/assets/gpimagerotate/images/image_rotate_side_nav.png");
	top:200px;
	width:34px;
	height:68px;
	opacity: 0.7;
	cursor:pointer;
}

a.gpImageRotate-PrevBtn {
	left:0;
	background-position:0 0;
}

a.gpImageRotate-NextBtn {
	right:0;
	background-position: 34px 0;
}

.gpImageRotate-DisplayCntnr {
	float:left;
	margin:0;
	padding:0;
	width:400px;
	height:400px;
	font-family:Arial, Helvetica, sans-serif;
}

.gpImageRotate-TextCntnr {
	color:#fff;
	position:relative;
	background: rgba(85, 85, 85, 0.7);
	display:none;
	height:120px;
}

.gpImageRotate-TextCntnr h2 {
	color:#fff;
	font: 16px bold Arial, Helvetica, sans-serif; 
	text-align:center;
	line-height:24px;
}
.gpImageRotate-TextCntnr p {
	color:#fff;
	font: 12px Arial, Helvetica, sans-serif;
	margin:7px; 
}	
	
IMG {
	border:none;
}	

For documentation about the gpImageRotate plugin, view the blog post.

Tags

, , , , , , , , , ,