Created
June 24, 2018 04:30
-
-
Save xbansh33/677b3767be66bd91356f88d600485919 to your computer and use it in GitHub Desktop.
fancybox js code to deal with problem of lightbox displaying at top of page rather than at image position
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$(".ossn-wall-item .post-contents img").fancybox({ | |
'titleShow' : false, | |
top: '75px', | |
afterClose: function(){ | |
$(".ossn-wall-item .post-contents img").show(); | |
}, | |
padding: 0, | |
helpers: { | |
overlay: { | |
locked: false | |
} | |
} | |
}); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment