jacobtdb Posted December 18, 2023 Share Posted December 18, 2023 Hi, I use this code for navigation links (header). But can i use the same in footer with some adjustments and add-on ? https://sf.digital/squarespace-solutions/add-a-hover-effect-to-the-squarespace-71-navigation Link to comment
Ziggy Posted December 18, 2023 Share Posted December 18, 2023 You could do this, but you'll need to specifically target the block or link type that you want this effect on. Can you share your website URL and the links you want the effect on? Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
paul2009 Posted December 18, 2023 Share Posted December 18, 2023 2 hours ago, jacobtdb said: I use this code for navigation links (header). But can i use the same in footer Hi @jacobtdb. I wrote the guide that you're using 🙂. To add the effect to links in the footer, you'll want to substitute "#footer-sections a" in place of ".header-nav-item". If you experience any difficulties, do post back with a link to your site as it isn't included by default when you post. Did this help? Please give feedback by clicking an icon below ⬇️ Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
jacobtdb Posted December 18, 2023 Author Share Posted December 18, 2023 Hi @paul2009 yes i know 😊 Thanks. Now you can update your code and page with footer links also then 😉 Here is the access to test-site: https://lumega-new.squarespace.com/ PW: TDBLumtest Thanks. Link to comment
jacobtdb Posted December 20, 2023 Author Share Posted December 20, 2023 On 12/18/2023 at 9:57 AM, Ziggy said: You could do this, but you'll need to specifically target the block or link type that you want this effect on. Can you share your website URL and the links you want the effect on? Here is the access to test-site: https://lumega-new.squarespace.com/ PW: TDBLumtest Link to comment
Solution tuanphan Posted December 22, 2023 Solution Share Posted December 22, 2023 On 12/20/2023 at 9:37 PM, jacobtdb said: Here is the access to test-site: https://lumega-new.squarespace.com/ PW: TDBLumtest Use CSS code like this footer.sections a { position: relative; } footer.sections a::before { content: ""; position: absolute; display: block; width: 100%; height: 2px; bottom: 0; left: 0; background-color: #000; -webkit-transform: scaleX(0); -ms-transform: scaleX(0); transform: scaleX(0); -webkit-transition: -webkit-transform 0.3s ease; transition: -webkit-transform 0.3s ease; -o-transition: transform 0.3s ease; transition: transform 0.3s ease; transition: transform 0.3s ease, -webkit-transform 0.3s ease; } footer.sections a:hover::before { -webkit-transform: scaleX(1); -ms-transform: scaleX(1); transform: scaleX(1); } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
jacobtdb Posted February 12 Author Share Posted February 12 Is this code also possible in dropdown links ? Try under "About us": https://en.lumega.eu/ Link to comment
tuanphan Posted February 15 Share Posted February 15 On 2/13/2024 at 3:09 AM, jacobtdb said: Is this code also possible in dropdown links ? Try under "About us": https://en.lumega.eu/ Use this code div.header-nav-folder-content a { position: relative; } div.header-nav-folder-content a::before { content: ""; position: absolute; display: block; width: 100%; height: 2px; bottom: 0; left: 0; background-color: orange; -webkit-transform: scaleX(0); -ms-transform: scaleX(0); transform: scaleX(0); -webkit-transition: -webkit-transform 0.3s ease; transition: -webkit-transform 0.3s ease; -o-transition: transform 0.3s ease; transition: transform 0.3s ease; transition: transform 0.3s ease, -webkit-transform 0.3s ease; } div.header-nav-folder-content a:hover::before { -webkit-transform: scaleX(1); -ms-transform: scaleX(1); transform: scaleX(1); } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
jacobtdb Posted February 16 Author Share Posted February 16 Great. Can we change lenght of underline so it fits the lenght of the text? Link to comment
tuanphan Posted February 18 Share Posted February 18 On 2/16/2024 at 10:07 PM, jacobtdb said: Great. Can we change lenght of underline so it fits the lenght of the text? With header dropdown, use this CSS code div.header-nav-folder-item a { display: inline-block !important; } jacobtdb 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) 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