Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fancybox navigation arrows not showing up

I am a newbie to jquery. All animations like transitions and speed is working fine. However, 'showNavArrows' and 'cyclic' isn't working. Here's the code:

$(document).ready(function() {
    $("a#single_image").fancybox({
        'transitionIn'  :   'elastic',
        'transitionOut' :   'elastic',
        'speedIn'   :   600, 
        'speedOut'  :   200, 
        'overlayShow'   :   false,
        'cyclic'    :   true,
        'showNavArrows' :   true
    })
});

Here's the available options: http://fancybox.net/api

like image 749
rahul dagli Avatar asked Jan 19 '12 16:01

rahul dagli


1 Answers

Cyclic and navigation arrows only will show up if you have a group of elements in a gallery, which means that the elements of the gallery should have the same rel attribute check this post for examples

like image 67
JFK Avatar answered Nov 11 '22 19:11

JFK