Jump to content

Atara

Member
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Atara

  1. On 12/19/2020 at 5:32 AM, bangank36 said:

    Add this to Settings->Advanced->Code Injection

    
    <script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
    <style>
    	#page section:first-child a.next-section {
          padding-top: 70px;
          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: 24px;
          height: 24px;
          margin-left: -12px;
          border-left: 1px solid #fff;
          border-bottom: 1px 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 {
          0% {
            -webkit-transform: rotate(-45deg) translate(0, 0);
            opacity: 0;
          }
          50% {
            opacity: 1;
          }
          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>Scroll</a>');
          $('a.next-section').on('click', function(e) {
            e.preventDefault();
            $('html, body').animate({ scrollTop: $("#page section:first-child").next().offset().top}, 500, 'linear');
          });
        });
    </script>

    image.thumb.png.ca1b0ec4b03fb747a04accb482e2ddff.png

    I know this is an older post, but is there a way to hide this for a mobile site? the bouncing arrow doesn't look good on mobile

×
×
  • 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.