daangqueenie Posted January 18, 2021 Share Posted January 18, 2021 Site URL: https://www.queeniedang.com Hi! On my portfolio website I have a large header section that takes up the whole screen, with a project gallery underneath. I want to add a simple arrow like the one in the attached image (crossed out the persons name for privacy). If the arrow could be clickable and actually move the page down, that'd be neat. However I just want something simple so if making it clickable will make it complex, then I'd rather just have the simple arrow. Thanks! Beyondspace 1 Link to comment
Beyondspace Posted January 19, 2021 Share Posted January 19, 2021 8 hours ago, daangqueenie said: Site URL: https://www.queeniedang.com Hi! On my portfolio website I have a large header section that takes up the whole screen, with a project gallery underneath. I want to add a simple arrow like the one in the attached image (crossed out the persons name for privacy). If the arrow could be clickable and actually move the page down, that'd be neat. However I just want something simple so if making it clickable will make it complex, then I'd rather just have the simple arrow. Thanks! Could you try this code? How do I make the scroll down arrow on my homepage clickable and to scroll down to the section below? - Coding and Customization - Squarespace Forum 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 pluginIf 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
visionsbyfurks Posted January 19, 2021 Share Posted January 19, 2021 (edited) @bangank36 www.studiofurks.com I have added the code but it duplicates the arrow. See below and I've added the code below the screenshot: script src="https://code.jquery.com/jquery-2.2.4.min.js"></script> <style> #page section:first-child a.next-section { padding-top: 75px; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 2; display: inline-block; color: #fff; font : normal 400 20px/1 'Josefin Sans', sans-serif; letter-spacing: .1em; text-decoration: none; transition: opacity .3s; } #page section:first-child a.next-section span { position: absolute; top: 0; left: 50%; width: 20px; height: 20px; margin-left: -12px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); -webkit-animation: sdb05 1.5s infinite; animation: sdb05 1.5s infinite; box-sizing: border-box; } @-webkit-keyframes sdb05 { 1O0% { -webkit-transform: rotate(-45deg) translate(0, 0); opacity: 0; } 50% { opacity: 100; } 100% { -webkit-transform: rotate(-45deg) translate(-20px, 20px); opacity: 0; } } @keyframes sdb05 { 0% { transform: rotate(-45deg) translate(0, 0); opacity: 0; } 50% { opacity: 1; } 100% { transform: rotate(-45deg) translate(-20px, 20px); opacity: 0; } } </style> <script> $(function() { $("#page section:first-child").append('<a href="#" class="next-section"><span></span></a>'); $('a.next-section').on('click', function(e) { e.preventDefault(); $('html, body').animate({ scrollTop: $("#page section:first-child").next().offset().top}, 500, 'linear'); }); }); </script> Edited January 19, 2021 by visionsbyfurks Link to comment
Beyondspace Posted January 19, 2021 Share Posted January 19, 2021 47 minutes ago, visionsbyfurks said: @bangank36 www.studiofurks.com I have added the code but it duplicates the arrow. See below and I've added the code below the screenshot: script src="https://code.jquery.com/jquery-2.2.4.min.js"></script> <style> #page section:first-child a.next-section { padding-top: 75px; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 2; display: inline-block; color: #fff; font : normal 400 20px/1 'Josefin Sans', sans-serif; letter-spacing: .1em; text-decoration: none; transition: opacity .3s; } #page section:first-child a.next-section span { position: absolute; top: 0; left: 50%; width: 20px; height: 20px; margin-left: -12px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); -webkit-animation: sdb05 1.5s infinite; animation: sdb05 1.5s infinite; box-sizing: border-box; } @-webkit-keyframes sdb05 { 1O0% { -webkit-transform: rotate(-45deg) translate(0, 0); opacity: 0; } 50% { opacity: 100; } 100% { -webkit-transform: rotate(-45deg) translate(-20px, 20px); opacity: 0; } } @keyframes sdb05 { 0% { transform: rotate(-45deg) translate(0, 0); opacity: 0; } 50% { opacity: 1; } 100% { transform: rotate(-45deg) translate(-20px, 20px); opacity: 0; } } </style> <script> $(function() { $("#page section:first-child").append('<a href="#" class="next-section"><span></span></a>'); $('a.next-section').on('click', function(e) { e.preventDefault(); $('html, body').animate({ scrollTop: $("#page section:first-child").next().offset().top}, 500, 'linear'); }); }); </script> I will check your site visionsbyfurks 1 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 pluginIf 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
visionsbyfurks Posted January 19, 2021 Share Posted January 19, 2021 @bangank36 Thanks Beyondspace 1 Link to comment
Beyondspace Posted January 19, 2021 Share Posted January 19, 2021 3 hours ago, visionsbyfurks said: @bangank36 Thanks Replace the script part with this <script> $(function() { $("#page .sections > section:first-child").append('<a href="#" class="next-section"><span></span></a>'); $('a.next-section').on('click', function(e) { e.preventDefault(); $('html, body').animate({ scrollTop: $("#page section:first-child").next().offset().top}, 500, 'linear'); }); }); </script> 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 pluginIf 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
visionsbyfurks Posted January 19, 2021 Share Posted January 19, 2021 @bangank36 Amazing, thank you! Would you know what I need to change to make it bounce like the following link: https://www.cookmellow.com/ Beyondspace 1 Link to comment
Beyondspace Posted January 20, 2021 Share Posted January 20, 2021 3 hours ago, visionsbyfurks said: @bangank36 Amazing, thank you! Would you know what I need to change to make it bounce like the following link: https://www.cookmellow.com/ Update the whole script for animation change <script src="https://code.jquery.com/jquery-2.2.4.min.js"></script> <style> #page section:first-child a.next-section { padding-top: 75px; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 2; display: inline-block; color: #fff; font : normal 400 20px/1 'Josefin Sans', sans-serif; letter-spacing: .1em; text-decoration: none; transition: opacity .3s; } #page section:first-child a.next-section span { position: absolute; top: 0; left: 50%; width: 20px; height: 20px; margin-left: -12px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); -webkit-animation: arrow 1.5s infinite; animation: arrow 1.5s infinite; box-sizing: border-box; } @keyframes arrow { 0% { bottom: 30px } 50% { bottom: 40px } 100% { bottom: 30px } } @-webkit-keyframes arrow { 0% { bottom: 30px } 50% { bottom: 40px } 100% { bottom: 30px } } @-moz-keyframes arrow { 0% { bottom: 30px } 50% { bottom: 40px } 100% { bottom: 30px } } @-o-keyframes arrow { 0% { bottom: 30px } 50% { bottom: 40px } 100% { bottom: 30px } } @-ms-keyframes arrow { 0% { bottom: 30px } 50% { bottom: 40px } 100% { bottom: 30px } } </style> <script> $(function() { $("#page .sections > section:first-child").append('<a href="#" class="next-section"><span></span></a>'); $('a.next-section').on('click', function(e) { e.preventDefault(); $('html, body').animate({ scrollTop: $("#page section:first-child").next().offset().top}, 500, 'linear'); }); }); </script> Atara 1 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 pluginIf 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
visionsbyfurks Posted January 20, 2021 Share Posted January 20, 2021 @bangank36 The arrow appears across all pages now, is there any way to solve this?https://www.studiofurks.com/ Beyondspace 1 Link to comment
Beyondspace Posted January 21, 2021 Share Posted January 21, 2021 3 hours ago, visionsbyfurks said: @bangank36 The arrow appears across all pages now, is there any way to solve this?https://www.studiofurks.com/ Help checking 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 pluginIf 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
visionsbyfurks Posted January 21, 2021 Share Posted January 21, 2021 @bangank36 Thank you, appreciate it. Beyondspace 1 Link to comment
Beyondspace Posted January 22, 2021 Share Posted January 22, 2021 14 hours ago, visionsbyfurks said: @bangank36 Thank you, appreciate it. Replace this if you only want it on homepage <script> $(function() { $(".homepage #page .sections > section:first-child").append('<a href="#" class="next-section"><span></span></a>'); $('a.next-section').on('click', function(e) { e.preventDefault(); $('html, body').animate({ scrollTop: $("#page section:first-child").next().offset().top}, 500, 'linear'); }); }); </script> AylaMourtada 1 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 pluginIf 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
daangqueenie Posted February 4, 2021 Author Share Posted February 4, 2021 On 1/18/2021 at 11:50 PM, bangank36 said: Could you try this code? How do I make the scroll down arrow on my homepage clickable and to scroll down to the section below? - Coding and Customization - Squarespace Forum Sorry this is a late response, but it works great! Do you know how to change/remove the word "scroll"? I kind of just want the arrow 🙂 Link to comment
Beyondspace Posted February 4, 2021 Share Posted February 4, 2021 46 minutes ago, daangqueenie said: Sorry this is a late response, but it works great! Do you know how to change/remove the word "scroll"? I kind of just want the arrow 🙂 snippet just have arrow, not the 'scroll' 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 pluginIf 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
daangqueenie Posted February 5, 2021 Author Share Posted February 5, 2021 On 2/4/2021 at 12:01 AM, bangank36 said: snippet just have arrow, not the 'scroll' Oh I see now. One more question, the arrow shows up on another page of mine also. How do I make it so that it only shows up on the main landing page and no where else? 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