Coin Slider: Image Slider with Unique Effects

After jqFancyTransitions I decided to release new jQuery image slider plugin with more unique transitions effects. I have ideas for new effects and after I didn’t find that somebody already implement that I create Coin Slider.

coin-slider

Thanks to you and your comments Coin Slider have lot of features that jqFancyTransitions didn’t have at the beginning.  Basically it’s a latest (and improved) version of jqFancyTransitions but with new ‘fancy’ transitions effects.

jqFancyTransitions slice your images in stripes, while Coin Slider slice them in squares. And that’s the main difference. With changing order of appearing those squares I achieve random, swirl, rain and straight effects.

While I was working on this I felt like I’m on college again. Creating order of squares appearance remind me on my college projects when I spent few night and days trying to solve some problem. Random and straight was simple, but swirl effect give me some trouble. Fortunately, I’m working with Milos Popovic who like to solve those kind of problems and he help me about swirl function. Kudos to Milos!

For rain effect I spent few rainy hours to built it and that’s why I gave him that name. Naming things is something that I’m not good at.

How to use

Download jQuery, Coin Slider javascript file and CSS file and include them on your page:

<script type="text/javascript" src="jquery-1.4.2.js"></script>
<script type="text/javascript" src="coin-slider.min.js"></script>
<link rel="stylesheet" href="coin-slider-styles.css" type="text/css" />

Add slider content and create one div with an id and put images and image descriptions, similar to:

<div id='coin-slider'>
	<a href="img01_url" target="_blank">
		<img src='img01.jpg' >
		<span>
			Description for img01
		</span>
	</a>
	......
	......
	<a href="imgN_url">
		<img src='imgN.jpg' >
		<span>
			Description for imgN
		</span>
	</a>
</div>

At the end all you have to do is to call Coin Slider:

<script type="text/javascript">
	$(document).ready(function() {
		$('#coin-slider').coinslider();
	});
</script>

Example

Coin Slider have a lot of options for helping you set slider as you want. If you want to have 900px wide slider, without navigation and with 5sec delay between images you’ll do this:

<script type="text/javascript">
	$(document).ready(function() {
		$('#coin-slider').coinslider({ width: 900, navigation: false, delay: 5000 });
	});
</script>

List of all options

width: 565, // width of slider panel
height: 290, // height of slider panel
spw: 7, // squares per width
sph: 5, // squares per height
delay: 3000, // delay between images in ms
sDelay: 30, // delay beetwen squares in ms
opacity: 0.7, // opacity of title and navigation
titleSpeed: 500, // speed of title appereance in ms
effect: '', // random, swirl, rain, straight
navigation: true, // prev next and buttons
links : true, // show images as links 
hoverPause: true // pause on hover

Notes

Be careuful with spw and sph because large numbers can cause transitions problems.
If you don’t set effect all effects will be implemented by random.

Check the demo of ‘The More Awesome jQuery Image Slider’

  • mooBarGraph: AJAX graph for MooTools (18)
    mooBarGraph is AJAX graph plugin for MooTools which support two types of graphs, simple bar and stacked bar graph. This plugin made graph from your JSON data and is compatible with all […]
  • Image gallery with fancy transitions effects (1034)
    I was looking all over the Internet for some jQuery gallery plugin with some interesting transition effects. I found a lot of great plugins but they all have pretty same transition […]
  • jQuery Snow Falling plugin (114)
    I like winter because of holidays and snow. Not big fan of going to shopping and buying New Year gifts and presents, but I am fan of snow and snowboarding. That's why I enjoy watching how […]
  • Gradienter: Add gradient to elements (24)
    Last night I started to work on Wordpress theme for blog and I got an idea that every post should have their own background color and that maybe those colors can be in gradient. Since that […]
  • Google Buzz ER: Google Buzz for Wordpress (137)
    Yesterday Google announced new service, Google Buzz, a new way to share updates, photos, videos and more, and start conversations about the things you find interesting. Today you can have […]

1,638 comments on "Coin Slider: Image Slider with Unique Effects"

Try to change:

$(document).ready(function() {
$('#coin-slider').coinslider({ width: 320, height:400, navigation: false, delay: 3000 });
});

to:

jQuery.noConflict();
jQuery(document).ready(function($) {
$('#coin-slider').coinslider({ width: 320, height:400, navigation: false, delay: 3000 });
});

Lazarevic Ivan on July 6, 2010 at 4:48 pm

script type=’text/javascript’ src=’http://ajax.googleapis.com/ajax/libs/prototype/1.6.1/prototype.js’>

script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js”>

$.noConflict();
// Code that uses other library’s $ can follow here.

Wass on July 6, 2010 at 6:22 am

Thanks for your quick reply
I’m basically a graphic designer so I don’t know too much about coding, pardon my ignorance please.

I implemented the code like the following, it managed to activate the lightview but the coin-slider is not working.

$.noConflict();
// Code that uses other library’s $ can follow here.

I really don’t understand how it make it work :s

Wass on July 6, 2010 at 6:20 am

Ivan,

hello, i’m trying to make thumbnails in the navigation, can you add this? would be great.

i tried:

$(‘#coin-slider a’).each(function() {
var img = $(‘img’, this), src = $(img).attr(‘src’)
$(img).wrap(
// $(‘a’).attr(‘href’, src)
$(‘a’).css(‘background-image’, src)

);
});

thanks you!

santiago on July 5, 2010 at 9:07 pm

Wass, check http://api.jquery.com/jQuery.noConflict/

Lazarevic Ivan on July 5, 2010 at 8:40 pm

Hi,
I like this plugin, but I noticed a conflict between it and the lightview plugin, I can’t use them on the same page. When I remove the coin-slider the lightview works, but when I add it back, it fails.
This is the page I’m testing on wassimjelassi.com
click on ‘contact’ normally the picture will popup in a lightview holder, but its not the case, unless I remove the coin-slider scripts.

Any solution for this?

Wass on July 5, 2010 at 6:31 pm

@Stacey: I have this problem too. Will post an answer here as soon as I find a solution.

@Ziya: Do you mean placing different slide shows on one page? The answer is yes, no problem if you use the same formats.

Barbara on June 26, 2010 at 6:03 am

Hi! Are this script support multiple use in a one page?

Ziya on June 25, 2010 at 6:28 am

Very nice slider, much easier to implement than others I’ve used. However, I’m having trouble getting the navigation to be centered under the slider. For some reason it’s always too far to the right. I tried wrapping everything in a container div and positioning it with css, but no luck.

http://www.ocsea.org/coinslider/test.asp

Stacey on June 24, 2010 at 11:12 am

I’m sure this is too late for the original poster!
In the javascript file, coin-slider.min.js, search for “50%”.
I changed:

(“#cs-buttons-“+el.id).css({‘left’:’50%’,’margin-left’:-images[el.id].length*15/2-5,’position’:’relative’});

to

(“#cs-buttons-“+el.id).css({‘left’:’50%’,’margin-left’:-images[el.id].length*25/2-5,’position’:’relative’});

Changing the initial left indent from 50% to 40% is a quick-and-dirty fix.
But the real problem seems to be that the image width is NOT “15” but “25”.
See where the margin-left is being calculated.

Mark Wilson on February 14, 2016 at 2:42 pm

Hello and thanks for your good work!

I included the gallery in NetObjects Fusion, seems to work well, you are welcome to have a look at my tutorial:

http://www.nof-schule.de/netobjects-tutorials/coin-slider-in-nof/html/imagefader-coin-slider-in-neto.html

I offered the three scripts (CSS, min.js, jQuery)in my download so that people don’t have to go looking for the jQuery, do you have any objection with that?

Best regards
Barbara

Barbara on June 21, 2010 at 4:55 am

Can you please provide a list of all possible transition effects? Like, can I just do a simple fade-in/out?

Brad Bice on June 15, 2010 at 4:48 pm

Thank you all for comments, I’m really glad that you like this plugin.

@MikeC
I think that you can find a solution in older comments.

@Sandra
Thanks for sharing your solution.

@Cindy
That require some additional js code.

Lazarevic Ivan on June 13, 2010 at 8:58 am

Fantastic slider m8 job well done!

I’ve been waiting for a nice “block” jQuery slider.

Ryan Doss on June 11, 2010 at 11:29 am

Looks great, will try it, thanks!

Advertkin g on June 11, 2010 at 8:22 am

This is a great plugin!

I was just wondering if there was a way to have the images only play once and then stop on the last image instead of continuing to play over and over again? I am really looking for a solution to this as the site I am using it on will be launching soon, so any help you could give me would be much appreciated!

Thanks in advance!

Cindy on June 10, 2010 at 3:44 pm

Site yet to be published, but I just had to let you know that your plugin rocks! Possible the EASIEST jQuery slider plugin Ive used to date. Thanks for publishing it.

Gary on June 10, 2010 at 6:03 am

actually i’ve justed solved it using the css !important rule
cheers steve

steve on June 10, 2010 at 2:12 am

hi, this slider is great got it working easy enough. however i do have a slight problem i wondered if anyone could help resolve. i’d like the controls to be a differnet width to the images and float to the left. any ideas to help would be much appreciated.

Thanks

steve on June 10, 2010 at 1:37 am

thank you for your great work,,

this is a really nice script

many thanks from Morocco 😉

Ayoub IZM on June 4, 2010 at 10:28 am

how does one adjust the height of the slider have changed the height but it does not reflect when I run the page.

like the script

david on June 3, 2010 at 1:00 pm

I may have found a solution. Adding this to my coin-slider-styles.css:

div#coin-slider img {
position:absolute;
top:0;
left:0;
z-index:8;}
div#coin-slider img.active {
z-index:10;}
div#coin-slider img.last-active {
z-index:9;}

If there’s another way, please let me know, but for now at least it loads one on top of the other and not in a long list down the page.

Thanks again for the script. It’s a beautiful slide gallery.

Sandra on June 3, 2010 at 12:42 pm

I thought of something after noticing that your demo does the same thing:
If I can’t avoid that pre-loading column of images, how can I make the borders white, to at least camouflage it a bit? I don’t see anywhere in the styles where the links/image borders are blue.

Thanks!

Sandra on June 3, 2010 at 10:24 am

Hello again,

Here’s my sample page, with one remaining problem:
http://designeworks.com/rja/work_house6.html

The issue is that in IE 7 or 8 (maybe earlier ones too), all the images load the first time you open the page, in one long column with a bright blue outline, then quickly snap up + disappear, all except the first one. So it’s not a functional problem (the slide show works afterall) but it’s a clunky way for the page to load and my client isn’t happy with it!

Is there anything I can do about this?

Thanks in advance.

Sandra on June 3, 2010 at 8:23 am

Hello Lazarevic. Is there an easy way to not alternate the transition direction? For example, having the transition always start from the top and not bounce from top to bottom to top…etc.
Thanks for any hints you could provide. Everything else works great!

MikeC on June 2, 2010 at 5:04 pm

Is it possible to have a loading images icon — there is a delay before my images are loaded and dots appear at the top of my screen — once loaded everything works like a charm —

Great Job and look forward to your comments.

RJL on June 2, 2010 at 3:07 pm

Leave a Reply

Your email address will not be published. Required fields are marked *