Home » Entertainment » How to Use JavaScript to Smooth Scroll to Top

How to Use JavaScript to Smooth Scroll to Top

(window.innerHeight || (document.documentElement || document.body).clientHeight))”
@click=”window.scrollTo(top: 0, behavior: ‘smooth’)”
x-show=”isVisible”
x-transition:enter=”transition ease-[cubic-bezier(0.68,-0.3,0.32,1)] duration-500 transform order-first”
x-transition:enter-start=”opacity-0 -translate-y-8″
x-transition:enter-end=”opacity-100 translate-y-0″
x-transition:leave=”transition ease-[cubic-bezier(0.68,-0.3,0.32,1)] duration-300 transform absolute”
x-transition:leave-start=”opacity-100 translate-y-0″
x-transition:leave-end=”opacity-0 translate-y-12″
class=”inline-flex items-center font-heading border text-button-inverted bg-button border-button hover:bg-button–dark hover:border-button–dark active:bg-button–dark active:scale-95 -mt-6 z-100 p-3 h-max mr-2 [@media(min-width:1170px)]:-mr-14″
>

2023-12-14 21:21:13
#Advent #calendar #equestrian #Christmas

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.