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 […]
  • 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 […]
  • 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 […]
  • 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"

WoW! This is amazing and beautifull slider, i like using it.. but i have little problem, I can’t use all effects at same time, then i write in effects one of them ( curtain, zipper, wave) it works very well, but then i write all of them like this( effect: ‘curtain’, ‘zipper’, ‘wave’,) it does only effect ‘zipper’…
Can you help me?
You’s senceraly!

Miro on March 12, 2013 at 7:09 am

Excellent tutorial, thank you very much

geotermia on March 11, 2013 at 5:45 pm

are we free to use this library in our own web pages ?

can on March 11, 2013 at 12:59 pm

very good

china,man on February 25, 2013 at 10:10 pm

Hey, my design is fluid… Is there a way i can use the property width:100%; on the images? This is getting uncomfortable… sorry 🙂

Martin on February 25, 2013 at 2:44 am

After page post-back jqfancytransition not working

saravanan on February 25, 2013 at 1:38 am

is there any tweak that will allow the use of TITLE property of IMG tag instead of the ALT property for text displaying?
That way we could still sue the ALT for SEO

Ismael on February 19, 2013 at 8:19 am

@Charlotte
Please check source code on demo page.

Lazarevic Ivan on February 18, 2013 at 4:35 pm

This is not a comment – it is a question.
It works fine… with the exception of when I click on an image… it does not go to the designated link.
I have changed
navigation: true, // prev and next navigation buttons
links: true // show images as links
on both /js/main.js and js/jqFancyTransitions.1.8.min/js
Not sure what I am doing wrong…. Any help would be appreciated.
I have not published the site…. I can’t get the links to work.
If you don’t have the answers, can you point me into the right direction? Thanks so much for your help!

Charlotte on February 11, 2013 at 4:09 pm

This is not a comment….
I have a question – where do I send my questions?

Charlotte on February 11, 2013 at 3:38 pm

amazing! i wonder why i have found this only now:) super-easy to use, yet powerful enough to play with:) huge thanx for this one.

btw. i wonder is there any way to add more classic transition options? like slide, fade etc? i’m very bad at java and jquery, but love to adapt these to php+mysql 🙂

kai on February 7, 2013 at 10:48 am

nice one.. i like this.. did you use code highlighter for code to highlight..

Noroz on January 27, 2013 at 8:44 am

I have a website with a liquid design, as I can adactar because it has a fixed size in pixles?

Hector on January 25, 2013 at 1:21 pm

how to import slide in my blog…?

dinesh on January 12, 2013 at 8:35 am

Hello,
how to changhe the color of the fonts?

I want to changhe the “prev” button etc. and the numbers at the menu from white to black, because i have an white homepage.

Great Code and Function! Very Good!
Thank u!

findus on January 1, 2013 at 4:11 pm

how you make the title to display on the images in the down can u plz know me…….

hari on December 30, 2012 at 1:03 am

Hi,
Great plugins,

Is there any way to change the effect in run-time?I have found that questions multiple times in the discussion but doesn’t find the answer.I want to use these effect one-after-one like Que.

please help,
thanks

Fahad on December 29, 2012 at 1:48 am

Hi,

Very cool and easy to use plug in. It is almost perfect for what I want to do.
A few questions:
1) Is there a way to reduce the delay before the animation starts? E.g. in the demo it does say wait a few seconds and it is actually close to 6 seconds. I’d like to reduce this to 3 seconds.

2)Is it OK to not specify an effect? This seems to be the only way I can have left to right direction animation to come up consistently. Here is my instantiation:
$(‘#banner’).jqFancyTransitions({ width : 955, height : 200, strips : 60, delay: 3400, stripDelay: 80, direction: ‘left’, position: ‘top’ });

3)Animation seems to speed up after 10 minutes. I’m using ‘left top’ example in the demo. Is it possible to prevent this speed up?

Thank you for your help. Happy New Year!

Nilgun Bindu Mat on December 28, 2012 at 7:04 pm

Leave a Reply

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