samfiskdesign Posted January 5 Share Posted January 5 Hello, I've been trying to find a way to add a scroll down arrow to my pages, but no luck. I'd like it exactly like this example: http://steven-banks.com/ I'm on the personal plan, so looks like code injection isn't an option, is there a way to do this with css? site: samfiskdesign.co.uk password: sfd123 Thanks, Sam Link to comment
Ziggy Posted January 5 Share Posted January 5 Try this thread: Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link)📈 SEO Space (Referral link)⬛ SquareWebsites Plugins (Referral link)☕ Did I help? Buy me a coffee? Link to comment
samfiskdesign Posted January 6 Author Share Posted January 6 @Ziggy Hello, Thanks - I tried that way (with code block) but doesn't seem to be working for me. Just showing as plain text on my site. Also, supposedly this results in a 'round box with 2 lines going down' according to OP, I'd like an arrow similar to my example if possible! Link to comment
Ziggy Posted January 6 Share Posted January 6 You need to uncheck the "Display Source Code" on the code block. samfiskdesign 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link)📈 SEO Space (Referral link)⬛ SquareWebsites Plugins (Referral link)☕ Did I help? Buy me a coffee? Link to comment
samfiskdesign Posted January 6 Author Share Posted January 6 @Ziggy Appreciate your help, thanks. That works - realised I had the drop down set to css not html. One more question, is there a way to add a smooth 'scroll' transition when I click on the arrow? (Currently it just jumps to the next section) This is the code I'm using: Quote <div class="bottom"> <a class="scroll-indicator" href="#tscroll"></a> </div> <style> .bottom { position: absolute; bottom: 0; width: 100%; left: 50%; transform: translateX(-50%); text-align: center; } .scroll-indicator { display: inline-block; width: 24px; height: 24px; margin: 16px auto; border-right: 2px solid #FFF; border-bottom: 2px solid #FFF; border-bottom-right-radius: 2px; -webkit-transform: rotate(45deg); transform: rotate(45deg); -webkit-animation-duration: 2s; animation-duration: 2s; -webkit-animation-name: fade; animation-name: fade; -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; -webkit-animation-timing-function: linear; animation-timing-function: linear; } @-webkit-keyframes fade { 0% { -webkit-transform: rotate(45deg); transform: rotate(45deg); opacity: 1; } 75% { -webkit-transform: rotate(45deg) translateY(-6px) translateX(-6px); transform: rotate(45deg) translateY(-6px) translateX(-6px); opacity: 0; } 100% { opacity: 0; } } @keyframes fade { 0% { -webkit-transform: rotate(45deg); transform: rotate(45deg); opacity: 1; } 75% { -webkit-transform: rotate(45deg) translateY(-6px) translateX(-6px); transform: rotate(45deg) translateY(-6px) translateX(-6px); opacity: 0; } 100% { opacity: 0; } } </style> Link to comment
Solution Ziggy Posted January 6 Solution Share Posted January 6 Yes, add this to Custom CSS: html { scroll-behavior: smooth; } Give me a thumbs up if that helped! samfiskdesign 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link)📈 SEO Space (Referral link)⬛ SquareWebsites Plugins (Referral link)☕ Did I help? Buy me a coffee? 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