Answer the question
In order to leave comments, you need to log in
How to remove scroll to top of page when opening fancybox?
There is a site . In the Projects or Broadcast section , when you click on a photo in a "pop-up" block (Fancybox), content opens.
The problem is that when clicked, the main page scrolls to the beginning. How to get rid of it?
The bottom line is that the content inside the popup will be large and should scroll.
PS "Design" please do not discuss :) This is the design of the customer, she wants it exactly as it is.
Answer the question
In order to leave comments, you need to log in
$.fancybox.open($element, {
padding : 0,
helpers: {
overlay: {
locked: false
}
}
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question