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

The Archive Base Latest Questions

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

i have a one page website with smooth scrolling effect when an a tag

  • 0

i have a one page website with smooth scrolling effect when an a tag (navigation) is clicked, one of those navigation entry also calls a hidden div(input.box) with fadeIN function, my problem is whenever that entry with fadeIN function shows, the page also slides down a little bit. How should i restrict this menu with fadein function from scrolling also? I have the codes i used for smoothscroll and fadein on my jsfiddle bellow.

Smooth Scroll Code

FadeIN Effect Code

  • 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-03T21:04:17+00:00Added an answer on June 3, 2026 at 9:04 pm

    The following part of your smooth scroll code selects the elements for which to apply the effect:

    $('a[href*=#]')
    

    You need to restrict that to exclude the anchor that opens the popup. The approach to doing this depends on how you identify the element to exclude:

    $('a[href*="#"]:not(a[href="#info"])')
    

    or

    $('a[href*="#"]:not(.info-popup)')
    

    One could also argue that it would be neater if the criteria was the other way around, so that the elements that should be targeted for smooth scrolling needs to be actively selected, rather than filtered out:

    $('a.page-nav')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one page website only using HTML, CSS and JavaScript. I want to
I have a very simple one page website that has a input field in
i am porting over a website from asp. i have one page that i
I have one master page which applies to all pages in this website. On
I have an ASP.net website running under IIS6. In one .aspx page the user
I have a one-page website with sliding panels, some of which have external links.
I have one FBML static page added as a tag in my Facebook page.
I have a website that has around 10 pages. Only one of those pages
I have product website. On one page I show thumbnails and a brief description
I have an apache2 / mod_perl website. On one page, I need to do

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.