fancyBox 2.1.3: Vertical Positioning to the Top
To align the fancyBox viewport to the top just declare the ‘topRatio’ : 0. This will position your photo/gallery to the top of browser window.
Example:
<script type=”text/javascript”>
$(“#springsummergallery”).click(function() {
$.fancybox([
’01.jpg’,
’02.jpg’,
‘etc.jpg’,
], {
‘padding’: 0,
‘transitionIn’: ‘none’,
‘transitionOut’: ‘none’,
‘type’ : ‘image’,
‘changeFade’ : 0,
‘topRatio’ : 0
});
});
</script>