{
if (counter <= 0) {
bannerVisible = false;
clearInterval(timer);
} else {
counter -= 100;
}
}, 100);
"
@mouseenter="clearInterval(timer)"
@mouseleave="
timer = setInterval(() => {
if (counter <= 0) {
bannerVisible = false;
clearInterval(timer);
} else {
counter -= 100;
}
}, 100);
"
x-show="bannerVisible"
x-transition:enter="transition ease-out duration-500"
x-transition:enter-start="-translate-y-10"
x-transition:enter-end="translate-y-0"
x-transition:leave="transition ease-in duration-300"
x-transition:leave-start="translate-y-0"
x-transition:leave-end="-translate-y-10"
class="fixed sm:top-2 top-0 z-50 inset-x-0 sm:max-w-md mx-auto sm:ml-auto sm:mx-0 w-full h-auto py-2.5 duration-300 ease-out bg-white shadow-md sm:border rounded-md " x-cloak>