Jump to content

Clickable down arrow on homepage banner

Recommended Posts

forgot to add the code:

 

<div class="scroll-down"></div>
<style>
  .scroll-down {
position: relative;
top: 210px; left: 0px;    left: 0%; bottom: 0px;
    display: block;
    text-align: left;
    font-size: 20px;
    z-index: 100;
    text-decoration: none;
    text-shadow: 0;
  width: 40px;
  height: 40px;
  border-bottom: 3px solid white;
  border-right: 3px solid white;
  z-index: 9;
  left: 10%;
  -webkit-transform: translate(-50%, 0%) rotate(45deg);
  -moz-transform: translate(-50%, 0%) rotate(45deg);
  transform: translate(-50%, 0%) rotate(45deg);
    -webkit-animation: fade_move_down 4s ease-in-out infinite;
    -moz-animation:    fade_move_down 4s ease-in-out infinite;
    animation:         fade_move_down 4s ease-in-out infinite;
}


/*animated scroll arrow animation*/
@-webkit-keyframes fade_move_down {
  0%   { -webkit-transform:translate(0,-10px) rotate(45deg); opacity: 0;  }
  50%  { opacity: 1;  }
  100% { -webkit-transform:translate(0,10px) rotate(45deg); opacity: 0; }
}
@-moz-keyframes fade_move_down {
  0%   { -moz-transform:translate(0,-10px) rotate(45deg); opacity: 0;  }
  50%  { opacity: 1;  }
  100% { -moz-transform:translate(0,10px) rotate(45deg); opacity: 0; }
}
@keyframes fade_move_down {
  0%   { transform:translate(0,-10px) rotate(45deg); opacity: 0;  }
  50%  { opacity: 1;  }
  100% { transform:translate(0,10px) rotate(45deg); opacity: 0; }
}
</style>

Link to comment

First, change this line

<div class="scroll-down"></div>

to this

<a class="scroll-down" href="#next-section"></a>

Next, add a Code Block above (or over) this text

image.thumb.png.82a90e8c6ad824996dbf258f5a711b9e.png

Paste this code into Code Block

<span id="next-section"></span>

 

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
On 2/6/2023 at 5:11 PM, Will_R_1992 said:

Thank you. 

Is it possible to do this, without refreshing the page? and pushing down to the section?

Thanks

#1. It looks fine to me. You try checking it again

#2. What do you mean?

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

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.