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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:04:35+00:00 2026-06-04T03:04:35+00:00

Hot to detect and perform an action with jquery when user get scrolled (his

  • 0

Hot to detect and perform an action with jquery when user get scrolled (his point of view) to fast(ie. 1 second) from the top position of the page to the bottom position of the page ? (only if the page is scrollable)

Want to find universal solution based on relative values, not on html marks(elements on the page).

Notes:
think need to check to be sure that user view point after DOM-ready is top of the page.

  • 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-04T03:04:37+00:00Added an answer on June 4, 2026 at 3:04 am

    You could use a a timed event based on two elements, this would be quite accurate

    Check if element is visible after scrolling

    If you wanted to extend this you could use several elements and work out the average speed between the elements 🙂

    <script>
    var finalFired = false;
    var now = new Date().getTime();
    function isScrolledIntoView(elem){
        var docViewTop = $(window).scrollTop();
        var docViewBottom = docViewTop + $(window).height();
    
        var elemTop = $(elem).offset().top;
        var elemBottom = elemTop + $(elem).height();
    
        return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));
    }
    $(document).scroll(function(){
        if(!finalFired){
            if(isScrolledIntoView("div:last")){
                finalFired = true;
                var then = new Date().getTime();
                alert(then-now);
            }
        }
    });
    </script>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    <div style="height:100%;">Test</div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get the user defined global hot key for my application.
So I took a specific hot-spot from a very large web application, that does
we can get google's hot trends based on location. is it possible to extract
I am merging a hot fix from our QA branch back into our Dev
I have a hot observable (from an event) that I'm calling DistinctUntilChanged on which
You can perform hot deploy when you have native Java code on Jetty. This
JQuery is a hot topic these days. Today, on Stack Overflow, there are currently
I found this HOT bit of jQuery that actually allows you to replicate font-variant:
Is it possible to stop the hot deployment from JBoss 6 programmatically? How can
hot to check if windows service is on/off from webapplication? i am using asp.net

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.