This can actually be done with a helper in Fancybox 2.
$('.image').fancybox({
helpers: {
overlay: {
locked: false
}
}
});
http://davekiss.com/prevent-fancybox-from-jumping-to-the-top-of-the-page/
More Related Contents:
- CSS Trouble adding border
- Why is my jQuery :not() selector not working in CSS?
- iframe to Only Show a Certain Part of the Page
- $(window).width() not the same as media query
- Get element -moz-transform:rotate value in jQuery
- Play/pause HTML 5 video using JQuery
- Bind event to right mouse click
- How to automatically change the text size inside a div?
- jquery IE Fadein and Fadeout Opacity
- Activate CSS3 animation when the content scrolls into view
- jQuery toggle CSS?
- jQuery CSS – Write into the -tag
- expand/collapse table rows with JQuery
- jQuery: height()/width() and “display:none”
- How to find the highest z-index using jQuery
- Bootstrap throws Uncaught Error: Bootstrap’s JavaScript requires jQuery [closed]
- Selecting only first-level elements in jquery
- fancy box work with iframes in beforeShow function?
- How to make Bootstrap carousel slider use mobile left/right swipe
- How to expand ‘select’ option width after the user wants to select an option
- Creating a hole in a element
- How do you select elements based on their style?
- How to force a hover state with jQuery?
- Apply CSS to jQuery Dialog Buttons
- Google Chrome viewport-anchored expand direction with flexbox
- Use jQuery to Detect Container Overflow?
- Weird IE8 layout glitch – why does the body background disappear?
- jQuery css gradient
- Remove vertical lines in jqGrid
- Removing multiple classes (jQuery)