Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7919273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:48:46+00:00 2026-06-03T15:48:46+00:00

How does sites like Pinterest and 9gag’s fast version do this: On Pinterest if

  • 0

How does sites like Pinterest and 9gag’s fast version do this:

On Pinterest if you click on any image and get the modal you will notice that scrolling anywhere on the page causes the modal to scroll and not the main document.

On 9gag if you scroll anywhere except the comment section, it’s the main content area on the left that scrolls.

In either case, you don’t have to be focused on the area you would like to scroll. Just scrolling anywhere even if your mouse isn’t inside the area you want to scroll, causes that area to be scrolled.

How do they achieve this? For example how can one disable scrolling on the main document and cause some div on the page to scroll in it’s place?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T15:48:46+00:00Added an answer on June 3, 2026 at 3:48 pm

    On Pinterest, when a modal opens up, a class of “noscroll” is added to the <body/>:

    .noscroll {overflow: hidden !important;}
    

    This prevents the body from scrolling. The modal itself has an id of “zoomscroll” which contains the following:

    overflow-y: scroll;
    

    So while the body is frozen, the overflow of #zoomscroll can be scrolled.

    Have a look at the demo here: http://jsbin.com/ucacon/2/edit — Click on any paragraph to freeze the body, and enable scrolling on the paragraph itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm wondering how sites like Facebook, and I'm assuming Pinterest does this too (I
does anybody knows how i can get nice url`s in CodeIgniter like this: examplepage.com/sites/my-new-project
There are some nice free image to ASCII art conversion sites like this one:
Does anyone know any site or book that presents problems like python challenge ,
2 questions: Does using MVC make it any easier to build 508/WAI compliant sites?
I have seen sites like sc2ranks.com and I totally wonder how they get information
Does anyone know what is wrong with this regex? It works fine on sites
How do URL shorting sites like bit.ly or goo.gl work? Does anyone know what
why does the images from my site http://allbusters.in doesn't load in other sites like
On some sites, like facebook, gmail, youtube, etc, you can tick this option (or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.