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 […]
  • 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 […]
  • 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 […]
  • Visualize Twitter connections with Twings (3)
    I always find it interesting to see who from people that Iā€™m following on Twitter follows me back and also to see how those people are related with each others. I was looking the best way […]
  • Image gallery in 4 lines of code with MooTools and Dojo (8)
    Recently I wrote article how to create image gallery with description in 4 lines of jQuery code. Now, I will do the same thing with two other popular JavaScript frameworks, MooTools and […]

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

Very nice plugin I love it.

POP EYE on December 22, 2012 at 2:40 pm

good

wang on December 22, 2012 at 5:19 am

Hi,
Every thing works great.But how to make the links to open in a new page.Though I made the target=”_blank” it still opens in the same window.Is there any work around for this.
Thanks

Rama on December 10, 2012 at 11:44 am

I really appreciate it !
I juste want to find how is possible to have a picture for the prev and next buttons, can you help me ?
Thanks

Denis on December 9, 2012 at 5:50 am

Great plugin! Is there a random option, so that it’ll cycle through more than 1 effect?

damien on December 8, 2012 at 3:00 pm

Hi! This is a really nice work, but I’ve a issue.
If I click on the numbers(fast)in order to change the slide, the animation looks a bit weird, Is any form to avoid this?
I was thinking in put in some place a “wait until animation ends” but I really haven’t idea how can I doing it. Thanks šŸ˜€

benvoide on November 27, 2012 at 1:40 am

Pretty good rotator, but how do you setup the css for the alt atribute?

Wallis on November 26, 2012 at 8:39 am

got it working beautifully! made simple changes to js/jq 1.8 file and css. thanks!

Christina B on November 15, 2012 at 7:17 pm

how to open a new window, I add target=”_blank”, but not work, thanks!

robert on November 13, 2012 at 3:57 am

nice work, but you must your description update because we downloading jqFancyTransitions.1.8.min.js actually but at your description you wrote still js/jqFancyTransitions.js

redbull330 on November 12, 2012 at 8:49 pm

please give script code, cannot get this to work. “slideshowHolder” is actually “ftHolder? yes???? need instruct on where to put this. thanx.

Christina B on November 9, 2012 at 4:46 pm

why is it not working for android mobiles like htc and samsung galaxy Y ??

vishnu on November 6, 2012 at 9:05 am

Nice work, this is exactly what I was looking for! Thank you!

Carmen on November 4, 2012 at 6:17 am

I really appreciate it, This is exactly what I was looking for….This plugin of yours saved me a lot of time, Thanks

Vishnu on October 30, 2012 at 5:12 am

i want to know if i can use the fancy transitions in 2 different holders with different option each one

jorge on October 26, 2012 at 5:09 pm

Very good plugin, thank you very much mate šŸ™‚

Jane Marie on October 22, 2012 at 11:22 pm

Love the smoothness of the effects.
Any way to add a callback when an image transition is done?

Patrick on October 16, 2012 at 3:55 pm

Leave a Reply

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