SanHolo Posted August 27 Share Posted August 27 Hello there, I'm looking to create a header that's invisible until the user scrolls. Perhaps it could also fade or slide in as it appears. Any help would be most appreciated. Thanks! Link to comment
Lesum Posted August 27 Share Posted August 27 @SanHolo Hi! Can you share your site URL for context? If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
SanHolo Posted August 27 Author Share Posted August 27 I Lesum, Here it is: https://www.animateus.co.uk/ Thank you Link to comment
Lesum Posted August 27 Share Posted August 27 (edited) @SanHolo First enable the ‘Fixed Position’ option for your header in the Squarespace editor by navigating to Edit > Edit Site Header > Edit Design > Fixed Position, and toggle it on. See the screenshot for reference. After that, you can add this code under Website > Pages > Website Tools > Custom CSS. Code hides the header initially, making it visible once you start scrolling. .header { opacity: 0; transition: opacity 1.3s ease-in-out; } .header.shrink { opacity: 1; } Edited August 27 by Lesum SanHolo 1 If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
SanHolo Posted August 27 Author Share Posted August 27 (edited) Worked like a charm! Thank you so much. I'm wondering, is there a way to make it fade in so that its appearance isn't so abrupt? I notice that there's a transition line in the code you provided but that part didn't work for whatever reason. Edited August 27 by SanHolo Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment