Go to Top Button
This goes into your Below the Board template. You can adjust the style of the button using CSS between the <style> tags.
Preview: https://prnt.sc/J5TmePMR9D3z
<style>
#goTopBtn {
position: fixed;
bottom: 20px;
right: 20px;
display: none;
background: #1a152c;
color: white;
border: none;
border-radius: 5px;
padding: 10px;
font-size: 18px;
cursor: pointer;
}
</style>
<button id="goTopBtn" onclick="window.scrollTo({ top: 0, behavior: 'smooth' });">Top</button>
<script>
const goTopBtn = document.getElementById('goTopBtn');
window.addEventListener('scroll', () => {
goTopBtn.style.display = window.scrollY > 200 ? 'block' : 'none';
});
</script>
ForumSpark Support