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 […]
  • jqIsoText: jQuery Text Effect Plugin (108)
    Some content on our pages are more important than other and we want to made him eye catching. There are lot of techniques to achieve that.  One of them is jqIsoText. With this […]
  • 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 […]
  • News Ticker in 4 lines of jQuery (93)
    There are a lot of different jQuery News Ticker plugins with lot of options that you can use. Do you want to learn how to create one on your own in only 4 lines of jQuery code […]

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

Hey Ivan,
is it possible to prevent crash of the animation after multiple clicking the navigation buttons? When you click it before animation is finished after first click, it simply leaves some stripes in the image until you reload page.

Thx, Kobi

Kobi on April 18, 2010 at 2:51 pm

Antony, for now you should set navigation to true for title. That will be fixed soon.

Lazarevic Ivan on April 15, 2010 at 3:59 am

Hi great plugin! I wondered though how can I get the title to show, like the one in your demonstration? I can’t seem to get it to show on mine.

Thanks

Antony on April 14, 2010 at 11:11 am

I didn’t use it yet (but will). It looks amazing!
Tnx for plugin!

YoYurec on April 13, 2010 at 3:35 pm

Thanks for the reply Ivan.

I’ve removed the , from after strips:25 as you suggested. As for the slow loading between transitions, maybe it’s just down to a slow connection speed or something, I might try pre-loading the images within the slider, see if that helps.

Thanks again.

Adrian on April 9, 2010 at 7:19 am

That worked, very nice.
I implemented it in my first template, which is not fully done, but showing you so you got an impression of how it is being used.

thought you would like to know 🙂
http://www.combinedpixels.com/themeforest/vertfolio/

luuk on April 9, 2010 at 5:43 am

Is there any way this could be used with the very popular NextGEN gallery plugin for WordPress?

Nigel on April 8, 2010 at 8:44 pm

Luuk, I saw that you set opacity: 1 for prev and next buttons and that cause you a problem in IE. Just remove that line completely and it should work. Nice job, btw.

Lazarevic Ivan on April 8, 2010 at 2:33 pm

Hi there!

You got 1 awesome plugin right here! really good job!

I am using this on my projects for sure.
As a matter of fact I am already playing around a bit with it to use it for my upcoming template.

I got it all working fine, except for 1 little thing:

I use (24bits) Png’s for the next and prev buttons.
For some reason they are not transparent (little black box around the buttons). Is there any way to display them properly… i mean that they are transparent?

You can find the slider here:
http://combinedpixels.com/themeforest/vertfolio/test/

Once again: awesome work!

luuk on April 8, 2010 at 5:41 am

I don’t see problem that you describe. But I notice that plugin doesn’t work in IE6 and IE7 on your site. That’s because you have , after strips: 25,. Just remove , and it will work.

Lazarevic Ivan on April 7, 2010 at 3:11 pm

Hi, thanks for the great plugin, I really like the look of it.

I got things working fine, but when I upload it to the web there seems to be a bit of an issue with the loading of images on first page load. The first image appears, but then before the next image comes in, the first image disappears for a split second.

Any ideas what could be causing the problem or if there is anything I could do to improve the loading?

You can take a look at what I have working here:

http://www.quaysiderestaurant.im

thanks in advance :o)

Adrian on April 7, 2010 at 12:31 pm

marc, it seems that you talking about wordpress plugin, please check http://workshop.rs/2009/12/fancy-transitions-featured-gallery-for-wordpress/

Lazarevic Ivan on April 6, 2010 at 6:50 am

ok, now it works, but i have to add ‘ftholder’ and ‘ft’ divs in the html. It didnt work with ‘slideshowholder’. It will be great if you will add feature to display title without navigation. Anyway, thank you!

marc on April 4, 2010 at 2:14 pm

I doesnt work for me. I see images above each other but nothing happens.:(

marc on April 4, 2010 at 7:46 am

@Nigel
I think that somebody posted the solution on WordPress plugin post so please check there, this post is for jQuery plugin : )

@Hexfusion
That’s mistake since new version and I’ll fix it really soon. I noticed that but I was busy with Coin Slider.

@Firefly
It’s important that client is satisfied : ) And just add strips: 1 if you didn’t.

Lazarevic Ivan on April 4, 2010 at 3:52 am

I figured it out…

Changed the “0” value in the strips animations to the height variable like so:

$(‘#ft-‘+el.id+itemId).css({ height: opts[el.id].height, opacity: 0, ‘background-image’: ‘url(‘+img[el.id][imgInc[el.id]]+’)’ });
$(‘#ft-‘+el.id+itemId).animate({ height: opts[el.id].height, opacity: 1 }, 1000);

It’s a crude fix, but my client last minute wanted it to fade and not use the canned transitions. Thanks for the plugin!

Firefly on April 1, 2010 at 4:04 pm

Is there a way to do a simple fade with this. Anything you can adjust in the .js to make that work. Awesome plugin by the way… love it!

Firefly on April 1, 2010 at 1:18 pm

@mAs
It’s true, it will be great if we can have an option to control if image will be repeated or not.

Patrice Robitaille on April 1, 2010 at 10:36 am

I think a nice functionality would be to to have title have its own function instead of being grouped with navigation. My only complaint is that you need navigation for title other than that really nice work.

Hexfusion on March 30, 2010 at 8:07 pm

This looks great, but I cannot get it to work using the WordPress plugin method. I have uploaded 3 images to posts and included the ftImage field entry then added the to my index.php on the Mystique theme.

What I get is the 3 images appearing at the top of my page one after another, so there seems to be a problem.

I noticed that on the Settings->Fancy Transitions page, the code displayed seems to be missing “php” at the start of the line:

<?include should be <?php include

My index.php is:

Nigel on March 30, 2010 at 11:08 am

@mAs
Image will be repeated if is smaller then box size and there is no option to control that.

@Nate
It’s tested with jQuery 1.2.3, 1.3.2 and 1.4.2. versions.

@Viki
Sure, it’s completely free, just leave credits in source file.

@Joel Wallis
It’s creators’ freedom to choose method of feature implementation, but thanks for comment.

@Jason
Not for now, but I’ll probably implement that in near future.

Lazarevic Ivan on March 29, 2010 at 9:29 am

That’s really awesome you were able to add the anchors around the images. Thanks for that!

Is there an easy way to add a class to the active image on the navigation numbers?

Jason on March 28, 2010 at 5:46 pm

What? URLs are added below the images? Why you don’t make the jqFancyTransitions engine to check if the node type is image or an anchor. If is an anchor, get the href and the image children and make an anchor on the image?

I think that one anchor below the image is a children job (sorry for sincerity).

Joel Wallis on March 28, 2010 at 2:23 pm

Can this script be used in commercial web-templates for sell and redistribute?
Is there any license or it’s totally free?

Viki on March 27, 2010 at 3:02 am

Leave a Reply

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