A beautiful overlay loader for your Bulma projects.
Click the buttons below to trigger different pageloader variations and animations.
Add the .pageloader div at the beginning of your <body>. Control
visibility by toggling the .is-active class.
<div class="pageloader is-active">
<span class="title">Loading...</span>
</div> Change the slide direction using modifier classes:
is-left-to-rightis-right-to-leftis-bottom-to-topUse a small snippet of JavaScript to show and hide the loader after a delay.
function triggerLoader(id) {
const loader = document.getElementById(id);
loader.classList.add('is-active');
setTimeout(() => {
loader.classList.remove('is-active');
}, 2000);
}