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
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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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.