laterrarossa Posted March 28, 2022 Share Posted March 28, 2022 Site URL: https://www.laterrarossa.com<div class="scroll-down"></div> <style> .scroll-down { position: absolute; left: 50%; bottom: 10px; display: block; text-align: center; font-size: 20px; z-index: 100; text-decoration: none; text-shadow: 0; width: 13px; height: 13px; border-bottom: 2px solid white; border-right: 2px solid white; z-index: 9; left: 50%; -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> Numerous visitors have had issues realizing there is content on the lower half of the page they need to scroll to. I love the scroll indicator, but I would love to make thise jump to the next section within each page, but am not sure where to start. Beyondspace 1 Link to comment
Solution tuanphan Posted March 30, 2022 Solution Share Posted March 30, 2022 First, edit this line <div class="scroll-down"></div> to this <a class="scroll-down" href="#next-section"></a> Next, add a Code Block above Instagram text >> Paste this code <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
laterrarossa Posted August 15, 2022 Author Share Posted August 15, 2022 @tuanphan I am not sure why this method did not work the first several times I tried it, but it is finally working, so thank you! tuanphan 1 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