dev7studios
This is an example of a caption.
This is an example of a long caption with HTML. Vivamus ut nisi id libero interdum pretium. Vestibulum lorem. Sed suscipit justo at lectus.
Jump to Download ↓

Ads by Yoggrt

Current Features

Browser Support

Nivo Zoom has been tested under the following browsers:

Usage

To use Nivo Zoom you have to include jQuery, the Nivo Zoom script and the Nivo Zoom CSS on your page:

<link rel="stylesheet" href="nivo-zoom.css" type="text/css" media="screen" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="jquery.nivo.zoom.pack.js" type="text/javascript"></script>

Next you need to add some HTML. The way Nivo Zoom works is you to wrap a thumbnail image in a link pointing to the image that you want to "zoom" in to and give this link the class "nivoZoom".

<a href="images/pic_large.jpg" class="nivoZoom">
	<img src="images/pic.jpg" alt="" />
</a>

On top of this you can add extra classes to the link to get the image to zoom in a different way. You can also add a caption to the zoomed image by adding a div with the class "nivoCaption".

<a href="images/pic_large.jpg" class="nivoZoom center">
	<img src="images/pic.jpg" alt="" />
	<div class="nivoCaption">This is an example of a caption.</div>
</a>

To get the image to zoom a different way add one of the following classes to the link:

Finally you need to hook up your script using the $(window).load() function:

<script type="text/javascript">
$(window).load(function() {
	$('body').nivoZoom();
});
</script>

Note that you can change the context of zoomed images by attaching the nivoZoom function to different elements.

Nivo Zoom has plenty of options to fiddle with. Below is an example of the code with all available options and their defaults:

<script type="text/javascript">
$(window).load(function() {
	$('body').nivoZoom({
		speed:500,
		zoomHoverOpacity:0.8,
		overlay:false,
		overlayColor:'#333',
		overlayOpacity:0.5,
		captionOpacity:0.8
	});
});
</script>

Optional Enhancement

These rules are optional but are recommended to make Nivo Zoom look totally rad when you use it.

Changelog

v1.0 - Initial Version.

Support

If you have any questions you can email me at gilbert@dev7studios.com or hit me up on twitter at @gilbitron. No promises I can help or even reply but I'll do my best.

If you enjoy this stuff and want more you can help me out by sharing this page or donating me some money. Why not buy me a beer?

Download

Please select a version of Nivo Zoom to download:

Production (4kb Packed)
Development (7kb Uncompressed)

Download Currently v1.0