Image gallery with fancy transitions effects

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 effects. Mostly that was fading and sliding effects. I wanted something different so I decide to made my own slideshow gallery plugin for jQuery. That’s how was born jqFancyTransitions.

jqFancyTransitions2

My main idea was to build some ‘strip curtain’ effect and I start from that. But, while I was building this some other effects just pop up and I decided to adjust code and include some of those effects. Now, there are ‘wave’, ‘zipper’ and ‘curtain’ effect, plus options that can be used for custom effect. You can see how it works on examples and documentations page.

At the beggining you will need to download jQuery and jqFancyTransitions and include them on your page similar like this :

<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/jqFancyTransitions.js" type="text/javascript"></script>

After that you will need some placeholder with some images for your slideshow. Text from alt tag will be used in title bar in your slideshow.

<div id='slideshowHolder'>
   <img src='img1.jpg' alt='img1' />
   <img src='img2.jpg' alt='img2' />
   <img src='img3.jpg' alt='img3' />
</div>

When you set everything time is to call jqFancyTransition and tell him where to do his job. You will probably need to set width and height for your gallery. That can be done with next code:

<script>
$(document).ready( function(){
    $('#slideshowHolder').jqFancyTransitions({ width: 400, height: 300 });
});
</script>

The code above is enough to made your fancy transitions gallery 400px wide and 300px high. If you want you can change transition effect with one of predefined values:

  • wave
  • zipper
  • curtain

Of course, you can made custom effect with set of options that you can use to set speed, number of strips, direction, type of effect, etc. Bellow is list of all parameters and their values that you can use.

effect: '', // wave, zipper, curtain
width: 500, // width of panel
height: 332, // height of panel
strips: 20, // number of strips
delay: 5000, // delay between images in ms
stripDelay: 50, // delay beetwen strips in ms
titleOpacity: 0.7, // opacity of title
titleSpeed: 1000, // speed of title appereance in ms
position: 'alternate', // top, bottom, alternate, curtain
direction: 'fountainAlternate', // left, right, alternate, random, fountain, fountainAlternate
navigation: false, // prev and next navigation buttons
links: false // show images as links

You can try to change those options and see what kind of effect you will get. Basically, you can change position and direction parameters and you will see variety of jqFancyTransitions effects. Also you can check examples and documentation page where you can see few examples with photos made by my friends Goran Jovanovic, Igor Srdanovic, Ivan Jekic and Marko Manojlovic who is also design layout for that page.

IMAGES AS URLS

Since 1.7 version images can be urls. All you have to do is to add url below images. Similar to this:

<div id='slideshowHolder'>
   <img src='img1.jpg' alt='img1' />
   <a href ='https://workshop.rs'/></a>
   <img src='img2.jpg' alt='img2' />
   <a href ='https://workshop.rs/projects/jqbargraph'></a>
   <img src='img3.jpg' alt='img3' />
   <a href ='https://workshop.rs/projects/moobargraph'></a>
</div>

After that just add links: true in call.

Changelog

– 1.5
navigation

– 1.7
images can be urls

– 1.8
class for active navigation number ( ft-button-IDOFHOLDER-active )
description bar is not part of ‘navigation’ option

  • jqBarGraph – jQuery graph plugin (157)
    jqBarGraph is jQuery plugin that gives you freedom to easily display your data as graphs. There are three types of graphs: simple, multi and stacked. All you have to do is to pass your […]
  • Fancy Transitions Featured Gallery for WordPress (62)
    ftFeatured is Wordpress plugin for creating image gallery with fancy transition effects of featured posts. You can choose between three types of transition effects: curtain, wave and […]
  • Create image gallery in 4 lines of jQuery (146)
    Few days ago friend asked me to build image gallery with thumbnails for her web page. Request was pretty simple, she wanted large image and few thumbnails bellow that. Also, large image […]
  • Twitter Flock for Wordpress: multiple accounts tweets with style (69)
    Twitter Flock is Wordpress plugin for showing multiple accounts tweets with different color scheme for every account. Also, there are setting allowing you to control how your tweets will […]
  • Use Webcam to Create Animated GIF (1)
    Some time ago I saw some online animated gif creator and thought it could be done in JS instead of Flash. We could easily access webcam from browser with the getUserMedia API. Nice […]

1,034 comments on "Image gallery with fancy transitions effects"

I dont anderstund anythink!!!! pls tell me what i do??

George on September 19, 2010 at 8:23 am

hello
the first im sorry
im English is poor

Your plugin is great

Very I want

but Not work correctly

Tell me The cause

http://insider.cool-biz.net/testjq.html

thank’s

t.miura on September 17, 2010 at 2:36 pm

Great plugin!

I was wondering how I would go about stopping the animation of images after they are displayed once, instead of having the effect continuously loop.

I will be using this to display my header, and after white transitions to my image, I want it to stop.

Thanks for the hard work!

Julian Hamilton on September 17, 2010 at 6:20 am

Hello !

Your slideshow is amazing !

I’d like to put pictures of different size but the problem is that when pictures are less big than the panel size, it repeat the pictures..

How can i do to solve the problem pleaaase??

Sarah on September 17, 2010 at 4:03 am

Ok the plug-in now works. I forgot that since I’m pulling it from another page that the MASTER page needs to have associated links and not the child page. Anyhow it’s working now, but why does my page length extend?

It’s almost as if there is a hidden image with the same resolution as the one displayed that’s taking up that space.

Brandon on September 15, 2010 at 1:55 pm

Brandon, try to disable JavaScript or remove this plugin, and you will see that you don’t have images on your page, since the path don’t point to valid image location. Problem is not in plugin.

Lazarevic Ivan on September 14, 2010 at 5:06 pm

It won’t let me post the code, sorry. Do you have an email I can get you at?

Brandon on September 14, 2010 at 4:14 pm

[CODE]

$(‘#slideshowHolder’).jqFancyTransitions({ width: 770, height: 540, position: ‘top’, direction: ‘left’, navigation: false, links: false });
[/CODE]

Brandon on September 14, 2010 at 4:11 pm

This coding:

$(‘#slideshowHolder’).jqFancyTransitions({ width: 770, height: 540, position: ‘top’, direction: ‘left’, navigation: false, links: false });

Is inside of a php file that is being pulled into another page via a PHP require statement. This isn’t causing the trouble is it? And, if yes, how do I correct this?

Brandon on September 14, 2010 at 4:10 pm

@Lazarevic Ivan

How can i fix this? I’m not sure how the paths should be syntaxed when the images lay outside of the folder structure. It’s quite different from other setups as I wasn’t able to do something like “../images/homemedia/x.jpg”.

So what’s wrong with my paths? The images are located in the exact folder as the PHP page the coding is on “/test_build/content/homegalmedia”. That location is form the root site folder.

Brandon on September 14, 2010 at 4:07 pm

@Alan
No.

@Francisco
jqFancyTransition will use all images that you put in slideshow holder.

@Claymm
I think that somebody offer solution for that. You should check older comments.

@techmetro
All elements have id or class so you can change their styles with CSS.

@Brandon
Paths to your images are wrong.

@girish
url ?

Lazarevic Ivan on September 10, 2010 at 7:42 am

dint work followed all steps…

copy paste images, links in header and function call.. bt dint wwrk?
lacking something?

girish on September 10, 2010 at 6:22 am

Correção para PNG com canal alpha. (linha 205-213 em jqFancyTransitions.1.8.js)

$(‘.ft-‘+el.id).attr(‘href’,links[el.id][imgInc[el.id]]);
if(opts[el.id].position == ‘curtain’){
currWidth = $(‘#ft-‘+el.id+itemId).width();
$(‘#ft-‘+el.id+itemId).css({ width: 0, ‘background-image’: ‘url(‘+img[el.id][imgInc[el.id]]+’)’ }).fadeOut();
$(‘#ft-‘+el.id+itemId).animate({ width: currWidth}, 1000).fadeIn();
} else {
$(‘#ft-‘+el.id+itemId).css({ height: 0, ‘background-image’: ‘url(‘+img[el.id][imgInc[el.id]]+’)’ }).fadeOut();
$(‘#ft-‘+el.id+itemId).animate({ height: opts[el.id].height }, 1000).fadeIn();
}

Diego - TOO Design on September 9, 2010 at 8:33 pm

Here’s what happeneing so far.

http://www.rutholsonphoto.com/test_build/indextest.php

Brandon on September 9, 2010 at 3:56 pm

I’m having a very difficult time getting this to work correctly. So far no images are being displayed, yet there’s a small little black box with the image names in there and it fades in and out as it goes up sequentially.

If anyone who knows the ins and outs of this can extensively help me I’d be forever grateful. Please contact me at psionicsin@gmail.com so we can try and pin down what I’m doing wrong.

Brandon on September 9, 2010 at 3:54 pm

Ivan thanks for the past answer, but i have a new problem, the prev & next buttons appears just as blue and underline hypertext without the background color, (i think that is an opacity color, the same that the title text). Where i can edit the background color of the prev & next buttons? can u help me?

techmetro on September 5, 2010 at 12:57 am

Hi Ivan,

Is it possible to have a random effect for each picture ?

I mean for the first one a curtain effect, the second, a wave one, etc.

Thanks a lot.

Claymm on September 4, 2010 at 5:44 am

Hi, I would like to put a limit to the page because I have many pictures

Francisco on September 3, 2010 at 10:02 pm

Thank you for creating such a nice looking and easy to use jQuery plugin. I have used several others that do similar things and yours is very easy to setup, modify, and the presentation is interesting!

acepek on September 3, 2010 at 12:24 pm

First of all Ivan, THANKS A LOT GREAT WORK!. Just have one question, is it possible to make the slide show not repeat??

Thanks again.

Alan on September 3, 2010 at 12:21 pm

@techmetro
Try to add this piece of code after jqFancyTransitions call $('.ft-ID').attr('target','_top'); . Replace ID with id of your placeholder.

@Nil
Yes.

@Ria
Just follow steps from post.

@Fawaz
No.

Lazarevic Ivan on September 3, 2010 at 9:09 am

Thanks for the reply.
One more issue: if the image holder size is greater than an image then the smaller images give tile effect. like the image repeats itself.
Any solution to this ??

Fawaz on September 3, 2010 at 5:46 am

Hi Ivan,
Plz help me how to make it works!!!
thanx

Ria on September 3, 2010 at 3:57 am

Hey i have done this but it seems not working. What should I do.I have downloaded the js files but I didn’t found the link to modify. Probably I have downloaded wrong files or what? Plz do guide me. Thankyou

Ria on September 3, 2010 at 12:30 am

Leave a Reply

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