nwatkins Posted September 1, 2021 Share Posted September 1, 2021 Site URL: https://www.nickwatkinsdesign.com/ Hi! Can someone help me with making my arrow clickable so that you can either scroll down yourself (like you can right now) or be able to click it and it goes straight to the next block of images? Here's my CSS code: .arrow{ position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); } .arrow span{ display: block; width: 20px; height: 20px; border-bottom: 2px solid #FFF333; border-right: 2px solid #FFF333; transform: rotate(45deg); margin: -10px; animation: animate 2s infinite; } .arrow span:nth-child(2){ animation-delay: -0.2s; } .arrow span:nth-child(3){ animation-delay: -0.4s; } @keyframes animate { 0%{ opacity: 0; transform: rotate(45deg) translate(-20px,-20px); } 50%{ opacity: 1; } 100%{ opacity: 0; transform: rotate(45deg) translate(20px,20px); } } Here's my HTML code: <div class="arrow"> <span></span> <span></span> <span></span> </div> Link to comment
tuanphan Posted September 2, 2021 Share Posted September 2, 2021 try edit this code <div class="arrow"> <span></span> <span></span> <span></span> </div> to this <a class="arrow" href="#gridThumbs"> <span></span> <span></span> <span></span> </a> 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
nwatkins Posted September 2, 2021 Author Share Posted September 2, 2021 20 minutes ago, tuanphan said: try edit this code <div class="arrow"> <span></span> <span></span> <span></span> </div> to this <a class="arrow" href="#gridThumbs"> <span></span> <span></span> <span></span> </a> @tuanphan Worked, thank you! Is there anyway to make this smoother? Like a slower move downward? Link to comment
nwatkins Posted September 2, 2021 Author Share Posted September 2, 2021 55 minutes ago, nwatkins said: @tuanphan Worked, thank you! Is there anyway to make this smoother? Like a slower move downward? Fixed it 🙂 ! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.