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 8164877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:24:46+00:00 2026-06-06T19:24:46+00:00

I would like to create the same effect as on Pinterest when you click

  • 0

I would like to create the same effect as on Pinterest when you click on an image: a modal window opens up but the URL of the page also changes. This last part is crucial: the URL in the address bar of the browser has changed, but we still see the original page content in the background (that’s why I call it a modal even though it may be much more complicated than that).
I am ideally looking for a jQuery solution.

[edit]
I should add that of course the Pinterest behaviour does not break the Back button which is, again, crucial.

  • 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-06T19:24:47+00:00Added an answer on June 6, 2026 at 7:24 pm

    This is my assessment of how Pinterest achieves it’s unique modal look and how to duplicate it.

    First and foremost, URL Link handling is server-side analyzed to see if the link is originating from the Pinterest site itself. That said, the Browsers URL Address Bar and History are dynamically created and not actually performed by the visitor.

    To clarify: The address bar is not the actual place your at when a model experience is taking place! To prove this, click on a Pinterest object and when in modal view go to the Address Bar and at the end of that URL location place your mouse cursor there and then click enter. You will then redirect yourself to that location! For further verification that you never left the home page, view Net Tab in Firebug/Firefox or Network Tab in Chrome.

    The following method is what Pinterest is doing when visiting the home page. Please view gingerly:

    1. Show Home Page.
    2. Wait for visitor to click on a Pinterest object.
    3. The clicked object has a unique webpage for direct access.
    4. The clicked object is not followed.
    5. The browser bar will populate itself with this clicked objects location, but your not actually there.
    6. The browser history will receive clicked location via JavaScrict or Server-Side processing.
    7. AJAX will load a piece of data (meat of modal via ID) from object’s page. Verifiable via HTTPRequest.
    8. The clicked object on the main page has disappeared (This can be verified via Inspect Element).
    9. The AJAX process will place that piece of data in the center of the screen with a white overlay.
    10. Scrolling main page is disabled while AJAX “modal” data receives scroll events via #zoomScroll.
    11. Clicking modal background returns object to webpage and URL Address Bar is “visually” reverted.

    To recreate the model effect Pinterest uses I would investigate different lightbox’s that support HTML/iframed content. Reviewing the numbered steps above process will show how to achieve the desired look for your website.

    A key step would be to set the lightbox to use all of the viewport, modifying the lightbox CSS rules if required to avoid any Close Button skin graphics and borders.

    The lightbox can then use a single template file with a div that’s populated by AJAX. Said div is horizontally centered in the viewport on a semi-transparent background. The iframe itself is transparent which would allow the underlying home page to show through.

    Throw in some scrolling rules similar to Pinterest and you have a decent clone method to use.

    As far as duplicating the Pinterest Webpage Layout, see this SO Answer.

    To use custom Pinterest Button that is text-link, thumbnail, or combo of both, see this SO Answer.

    For Data Scrape Pinterest process with jsFiddle tutorial, see this SO Answer.

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

Sidebar

Related Questions

i would like to create a 301 from a page to the same page
I would like to create the same overflow effect as you can see in
I would like to create a virtual host in apache2, but I want it
i would like to create a zoom effect for my site for visually impaired
I would like to create a visual effect when an item in a listbox
I would like to create a similar effect to Apple's Safari 4 Beta Top
I would like to create a hover effect like the left category menu on
i would like create a array of structure which have a dynamic array :
I would like to create this shape using just css. I am pretty sure
I would like to create a c++ type that mimic the build-in type exactly.

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.