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

  • Home
  • SEARCH
  • 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 862323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:07:23+00:00 2026-05-15T09:07:23+00:00

This is currently working, for the most part: $(.nextproject).click(function() { $(window).scrollTo( $(this) .parents() .nextAll()

  • 0

This is currently working, for the most part:

$(".nextproject").click(function() {
    $(window).scrollTo(
        $(this)
        .parents()
        .nextAll()
        .find("li:visible:first"),
        1000,
        {easing:'easeOutExpo', axis:'x', offset:-75 }
    );
});

You can see the demo here: http://www.studioimbrue.com/index2.php

It works fine through the whole thing. When you click the filters at the bottom, it still functions and skips the hidden divs. Once you get to the end, right before the #about div, it doesn’t continue going, and I have no clue why it won’t.

Edit: I changed the div elements to li elements. Still isn’t working properly; it gets to the last one of the list and won’t go any further. This doesn’t make any sense at all.

  • 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-05-15T09:07:23+00:00Added an answer on May 15, 2026 at 9:07 am

    You need a slight adjustment, using the selector in the .nextAll() call, like this:

    $(".nextproject").click(function() {
        $(window).scrollTo(
            $(this)
            .parents()
            .nextAll("li:visible:first"),
            1000,
            {easing:'easeOutExpo', axis:'x', offset:-75 }
        );
    });
    

    Since your HTML is like this:

    <li class="container photography_cat" style="">
      <!-- Other stuff.... -->
      <div class="nextproject"></div>
    </li>
    

    You want to find the next <li> that’s a sibling of the .nextproject‘s parent (not a child of the next element that’s a <li>)…it just happened to work on all but the last section because they have that <ul> with <li> elements inside (the images on the right). The last “about” section doesn’t have any <li> children, and previously the first of those little images on the right was what it was scrolling to, not the actual section…so it didn’t work at the end 🙂

    Now that I think about it, is it possible you were confusing .find() and .filter()? .filter() would work as well…but since .nextAll() takes a selector, there’s no need in this case.

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

Sidebar

Related Questions

I'm currently working on the GUI part of our group's first semester exam project,
I am currently working through this tutorial: Getting Started with jQuery For the two
I am currently working in this problem for hours now. I have to create
I am currently working on MGSplitViewController .So in this custom split view controller the
I am currently working on a REST service. This service has an entity which
I'm currently working with ckeditor and i'm using the jquery plugin for this editor
I'm currently working on an ASP.NET site created by someone else. There is this
I'm currently working on a critical monthly Accounts payable report. This report i just
I'm currently working on a small webapp where I work. I've created this for
I'm currently working on wholesale online t-shirt shop. I have done this for fixed

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.