Jump to content

Help adding a non-animated down arrow to tell users to scroll down

Recommended Posts

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!

image.png

Link to comment
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!

image.png

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, Keyword Highlighter
If 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

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

 

Screenshot 2021-01-19 at 12.29.37.png

Edited by visionsbyfurks
Link to comment
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>

 

Screenshot 2021-01-19 at 12.29.37.png

I will check your site

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, Keyword Highlighter
If 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
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, Keyword Highlighter
If 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
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>

 

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, Keyword Highlighter
If 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
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, Keyword Highlighter
If 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
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>

 

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, Keyword Highlighter
If 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
  • 2 weeks later...
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, Keyword Highlighter
If 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

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.