Jump to content

How to add a drop shadow to a fixed site header on scroll

Recommended Posts

Site URL: https://imdanielduncan.com

I'm trying to add a drop shadow to my fixed header on scroll with my Squarespace site, imdanielduncan.com.  Everything I tried did not work.  I was wondering if there is a way to do this using custom css.

Edited by imdanielduncan
I wanted to link my website URL right on the post, instead of someone having to type it in manually.
Link to comment
  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

2 hours ago, imdanielduncan said:

Site URL: https://imdanielduncan.com

I'm trying to add a drop shadow to my fixed header on scroll with my Squarespace site, imdanielduncan.com.  Everything I tried did not work.  I was wondering if there is a way to do this using custom css.

You can try adding to Home > Design > Custom Css

#header.shrink {
  box-shadow: 0px 2px 21px 4px rgba(0,0,0,0.75);
  -webkit-box-shadow: 0px 2px 21px 4px rgba(0,0,0,0.75);
  -moz-box-shadow: 0px 2px 21px 4px rgba(0,0,0,0.75);
}

Support me by pressing 👍  or marking as solution if this useful for you

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

My testing

image.thumb.png.fc43502c8e3d467dbda6f2ab4260b147.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

To modify the shadow as you wish, you can get the css code from the following link: https://cssgenerator.org/box-shadow-css-generator.html

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
25 minutes ago, Beyondspace said:

To modify the shadow as you wish, you can get the css code from the following link: https://cssgenerator.org/box-shadow-css-generator.html

Thanks! So how would I make it appear on scroll for my header in Squarespace? What would be the CSS I would use

Edited by imdanielduncan
I didn't like the way the question was phrased.
Link to comment

Here is how to adding Css code: https://recordit.co/IRXOEYcCYQ

image.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.