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

The Archive Base Latest Questions

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

When the user scrolls down on my website, I’d like to detect when the

  • 0

When the user scrolls down on my website, I’d like to detect when the very top header is out of view. Is this possible with jquery?

  • 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:33:06+00:00Added an answer on June 3, 2026 at 3:33 pm

    As mentionaed by @RoryMcCrossan, you can calculate it yourself.

    If you want a little more flexibillity, try this jQuery plugin:

    http://www.appelsiini.net/projects/viewport

    it’ll let you query the DOM based on whether the element is within the visible viewport.

    For example:

    $("div:in-viewport")
    

    will only return divs that are currently visible.

    You can also query for elements that are not visible, based on where they are. Mainly:

    $(":below-the-fold")
    $(":above-the-top")
    $(":left-of-screen")
    $(":right-of-screen")
    

    Check out the link above for more info, and the download.


    If you want to use this library to query for elements not currently shown,
    regardless of where they are, then use this:

    $("div").not(":in-viewport")
    

    So, assuming your header has an ID of header, you might use this:

    var $header = $('#header');
    
    $(window).scroll(function()
    {
        var isVisible = $header.is(':in-viewport');
        // Now show, hide, or do whatever you want...
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible with jquery that when a user scrolls down the page that
Whenever the user scrolls map or zooms in/out, this method gets called instantaneously. I
I would like to make it so when user scrolls down and reaches a
I wish to create a sticky header. Everytime that the user scrolls down AND
How do I detect if a user scrolls downwards with jQuery? I want a
I'd like to have a div appear after a user scrolls down on a
Basically I've got a huge table, which gets even bigger as user scrolls down
Why does my app quit when user scrolls down the UITableView, past the first/last
I'm facing UITableViewCell setup issue when user scrolls down and up the table. The
is there a plugin for Drupal to load images as the user scrolls down

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.