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 ='http://workshop.rs'/></a>
 <img src='img2.jpg' alt='img2' />
 <a href ='http://workshop.rs/projects/jqbargraph'></a>
 <img src='img3.jpg' alt='img3' />
 <a href ='http://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



Comments [ 675 Comments ]

  1. Lazarevic Ivan
    January 30, 2012

    @TheOx
    Try with:

    <script>
    $(document).ready( function(){
    $(’#jqheader’).jqFancyTransitions({width: 970, height: 200, navigation: false, links: true, delay: 4000, position: ‘top’, direction: ‘fountainAlternate’, strips: 30});
    });
    </script>
    
  2. soke
    January 30, 2012

    why, on my web slideshow not work?
    i use

    what wrong with my script??

  3. TheOX
    January 31, 2012

    @Ivan

    Thanks a lot, I will try that as soon as I can. For now I got away with an IFRAME but it’s not a really elegant solution… It could also cause issues with some browsers, as far as I know.

    I will let you know the results.

    Regards

  4. Alberto
    January 31, 2012

    Hi, i think it´s a good idea adding an option for the links to open in a different window: target=’_blank’

    i’ve done it by modifying the original javascript, but it could be better if it could be done as an option.

    Thanks for this plug-in.

  5. sivaranjnair
    February 1, 2012

    hai thanks a lot,i tried this code for my web page its working well.
    its really good..


Leave a Reply



Trackbacks and pingbacks
click to expand

  1. Data Entry says:

    Data Entry …

    [...]here are some links to sites that we link to because we think they are worth visiting[...]…

  2. [...] Slideshow with strip effects (演示 | 下载) [...]

  3. [...] 4. jqFancyTransitions – Slideshow with strip effects [...]

  4. [...] Image Gallery with Fancy Transitions Effects [...]