You can show a load animation only on a user’s first visit by combining Webflow interactions with custom code and localStorage. This ensures the animation runs once and is skipped on future visits.
First Visit Loader).
#loader-wrapper or .loader).
<script>
document.addEventListener('DOMContentLoaded', function () {
const hasVisited = localStorage.getItem('hasVisited');
if (hasVisited) {
// Hide the loader immediately so animation doesn't run
const loader = document.querySelector('.loader');
if (loader) {
loader.style.display = 'none';
}
} else {
// Set flag so animation won't run next time
localStorage.setItem('hasVisited', 'true');
}
});
</script>
overflow: hidden on body during the animation, then released afterward).
To show a load animation just once in Webflow, use localStorage to detect whether a user has visited before, and conditionally show/hide your loader. This requires a mix of Webflow interactions and custom JavaScript added in Page Settings.