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 […]
  • 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 […]
  • Animated Progress Bar in 4 lines of jQuery (51)
    Progress bars are really useful to indicate to user that something happens and when it will be approximately done. They are useful on page where assets should be preloaded before page is […]
  • Coin Slider 4 WordPress (237)
    Coin Slider 4 WP will show your featured posts as image slider and rotate them using unique effects provided by jQuery's Coin Slider. Implementation is very easy, after you download […]
  • 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 […]

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

I NEED HELP

I am very new to jQuery, but I like the effects produce by IVAN and want to learn how to produce it.

I have downloaded jquery-1.7.2 and jqFancyTransitions.1.8. and try to code it myself, but it wasnt just working. only my images are displaying in my browser, no slide show.

I am using Dreamweaver 8. How do I use this tool or other recommended one, to code it and produce the same effect.

I need this knowledge badly and quickly.

Thanks.

olu on July 13, 2012 at 4:42 pm

IE6,some questions.

Simon on July 10, 2012 at 11:28 am

slt
ou dois-je implémenter tout ce code?
je travaille avec Drupal 7 et j’utilise wysiwig comme éditeur.
comment intégrer ces codes via le wysiwig
j’en ai vraiment besoin merci

oumar on July 9, 2012 at 12:41 pm

I added links to my slideshow….. now, how do I open them in a new window since target=”_blank” does not work?
Thx

Alberto on July 8, 2012 at 4:14 am

i have a question, can’t resize the picture…

emiliano on July 3, 2012 at 3:53 pm

i have set the interval time.. but its too much time to load at first. so can we make it easily loadable…..???

Akli Shaikh on July 2, 2012 at 4:43 am

Can Somebody Help; where to download the respective CSS file???

LS on June 30, 2012 at 5:26 am

Well done. Great piece of code.
I do have one question around styling the number buttons that appear below the images. I see in the javascript where you’ve set the initial styling. Am wondering how to style the rollover and active states (the way you’ve done on your demo page). Thanks

Max on June 29, 2012 at 8:07 pm

i don’t normally like fluffy stuff, but this is wicked… great work!

Greg on June 29, 2012 at 1:55 pm

I have read some good stuff here. Certainly worth bookmarking for revisiting.
I wonder how so much effort you put to create this
type of fantastic informative website.

vesti srbija on June 27, 2012 at 7:53 pm

Hi,

We are having issue with synchronization of image and image caption, it shows caption of next image.

See gallery at the bottom of “http://datelinemarion.com/”

We are using below settings:

// default values
$.fn.jqFancyTransitions.defaults = {
width: 420, // width of panel
height: 252, // height of panel
strips: 0, // number of strips
delay: 5000, // delay between images in ms
stripDelay: 0, // delay beetwen strips in ms
titleOpacity: 0.7, // opacity of title
titleSpeed: 0, // speed of title appereance in ms
position: ‘top’, // top, bottom, alternate, curtain
direction: ‘left’, // left, right, alternate, random, fountain, fountainAlternate
effect: ”, // curtain, zipper, wave
navigation: false, // prev next and buttons
links : false // show images as links
};

Please let me know how to fix this issue.

Abhijeet Dighe on June 22, 2012 at 7:46 am

Is there a zip with a working source and html example?

Phil on June 21, 2012 at 11:02 pm

thank you. nice script

uname on June 21, 2012 at 11:01 pm

ありがとうございます。
ライセンスはどのようになっているでしょうか?
商用利用も可能でしょうか?

nanako on June 20, 2012 at 3:17 am

Are there a fade in effect?

Ferran on June 18, 2012 at 1:14 pm

That’s fized too:) But i realized something when you assign titles to images, the previous title remains in the same spot after it’s image slides out.

Batuhan on June 15, 2012 at 11:17 am

I’ve fixed the problem but have another one now. The opacity of the titles remains same even though i changed it.

Batuhan on June 15, 2012 at 10:29 am

Right, i’ve got this half working on my site. The images change without a problem but i cant see the navigation numbers below the slider?

Batuhan on June 15, 2012 at 10:09 am

I apologize; I overlooked that it’s being dynamically assembled in the .js script. However, this makes it more difficult for non-programmers to locate and/or alter the settings of something that should be user-defined.

In the meantime, I changed the styles defined on this line in the jqFancyTransitions file to add PADDING as such:

.append(“<div class=’ft-title’ …. style=’position: absolute; bottom:0; left: 0; z-index: 1000; color: #fff; background-color: #000; padding: 5px 15px 5px 15px; ‘

Original Paulie D on June 14, 2012 at 11:21 pm

There are style classes referenced in your jqFancyTransitions.1.8.min.js file, such as “ft-title”.

Why did you not include style documentation? Looking at your demo page, it’s obvious that your ALT image title is larger than the one rendered by the download offered, since it lacks any stylesheet data.

Original Paulie D on June 14, 2012 at 11:08 pm

Works well, thanks!
I enhanced your jqFancyTransitions.1.8.min.js by adding:

‘background-repeat’:’no-repeat’

in the same 4 arrays where you define

‘background-image’:’some setting’

This works well, allowing for images of varying sizes. However, if a prior image is larger than the next in sequence, the larger image remains visible behind the current image and disappears during the next transition stage. Anyone know how to correct this?

Original Paulie D on June 13, 2012 at 10:11 pm

Okay so I tried this – wow this is really simple and effective. By the way if the guy who was struggling to work out the sizing issue I found it straight forward, so I’m wondering whether he changed the sizes in both the html and the js pages? that’s what I did and it worked first time.

Pebaro web design on June 13, 2012 at 6:02 pm

This looks great and sounds easy to follow. The comments are mixed so I’m hoping I can get this to work how I want it to in a current project. Thanks for taking the time!

Pebaro web design on June 13, 2012 at 5:28 pm

Leave a Reply

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