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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:56:14+00:00 2026-06-13T23:56:14+00:00

I have found many solutions to show a shadow or add a class to

  • 0

I have found many solutions to show a shadow or add a class to the top banner when the content has a top < 0px;. But, I would like to know if there was a way to slowly fade in the shadow while scrolling, so that maybe the shadow will only have an opacity:0.5 after scrolling 10px, for example?

It is used by Google in the Google+ pages, where you are scrolling the content and then the shadow underneath the top slowly fades in while scrolling, but also fades out again if you scroll up again. Can anybody please tell me how this is made with jquery and css3?

I have looked at this one but the only thing wrong is that I want the shadow to fade in more and more while scrolling.. I don’t want it to appear all of a sudden.

maybe it is possible to do it in steps.. This doesn’t work, but it may give you an idea..

var done = $(document).scrolltop() - 20x;
// now we can use this number as 100% scrolled

$(document).scroll(function() {
    // here we can animate the shadow opacity after 20%, 40%, 60%, 80% and 100%
}
  • 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-13T23:56:15+00:00Added an answer on June 13, 2026 at 11:56 pm

    DEMO — Something like this?

    This example uses CSS3 transitions to fade in/out the box-shadow on the fixed element.

    Update:

    DEMO — Alternate solution where opacity of box-shadow reflects the scroll position where 100px (and greater) from the top of the page is 100% opacity (zero transparency) and 10px from top is 10% (or 0.1) opacity (90% transparency).

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

Sidebar

Related Questions

I have found many people with simliar issues but no soultions...basically I have two
I have a controller that has many actions and it specifies a default class-level
I really don't know how to solve this, I have found many many solutions
I have found many posts, but still no solution. I am trying to hide
I have found many great answers to this from a year ago (when it
I have found many similar posts and even tried to find out how to
I am relatively new to assembly language. I have found so many tutorials that
i found many related questions here. I have a simple java program . it
I have refereed old questions and found that people face many issues after installing
I'm sorry for a redundant question. However, I've found many solutions to my problem

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.