Difference between revisions of "Template:KU Leuven/research/idea/css"

Line 204: Line 204:
 
     align:center;
 
     align:center;
 
   }
 
   }
 +
 +
$(document).ready(function() {
 +
 +
/* This is basic - uses default settings */
 +
 +
$("a#single_image").fancybox();
 +
 +
/* Using custom settings */
 +
 +
$("a#inline").fancybox({
 +
'hideOnContentClick': true
 +
});
 +
 +
/* Apply fancybox to multiple items */
 +
 +
$("a.group").fancybox({
 +
'transitionIn' : 'elastic',
 +
'transitionOut' : 'elastic',
 +
'speedIn' : 600,
 +
'speedOut' : 200,
 +
'overlayShow' : false
 +
});
 +
 +
});
  
  

Revision as of 15:53, 10 August 2015