faster transition on leaderboard

This commit is contained in:
Jon McClure 2024-05-07 11:38:57 +01:00
parent 4403ab8d07
commit f9533d4624

View file

@ -29,7 +29,7 @@
unstick = true;
setTimeout(() => {
sticky = false;
}, 800);
}, 400);
}, 3000);
window.removeEventListener('scroll', handleScroll);
}
@ -68,7 +68,7 @@
.leaderboard__sticky {
position: initial;
top: -275px;
transition: top 0.8s ease-in-out;
transition: top 0.4s ease-in-out;
z-index: 1030;
&.sticky {
position: sticky;