diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 0a0dfe7..f8b0fdf 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -139,8 +139,8 @@ const bannerOffset = bannerOffsetByPosition[siteConfig.banner.position || 'cente {siteConfig.banner.enable && } @@ -305,11 +305,21 @@ function initCustomScrollbar() { }); } +function showBanner() { + const banner = document.getElementById('banner') + if (!banner) { + console.error('Failed to find the banner element') + return + } + banner.classList.remove('opacity-0', 'scale-105') +} + function init() { // disableAnimation()() // TODO loadTheme(); loadHue(); initCustomScrollbar(); + showBanner(); } /* Load settings when entering the site */