Flat Preloader Icon
<div class="c-preloader">
	<div class="c-preloader__count"></div>
  <div class="c-preloader__progress"></div>
</div>
.bricks-is-frontend .c-preloader {
  position: fixed;
  top: 0;
  left: 0;
  background: #cc0000;
  width: 100%;
  height: 100vh;
  z-index: 10;
}
.bricks-is-frontend .c-preloader__count {
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
font-size: clamp(4rem, 3.824vw + 2.776rem, 8rem);
  font-weight: 100;
  letter-spacing: -.5rem;
  z-index: 10;
}
.bricks-is-frontend .c-preloader__progress {
  background: black;
  height: 100%;
  width: 0%;
  position: absolute;
  top: 0;
  left: 0;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/2.1.3/TweenMax.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.imagesloaded/4.1.4/imagesloaded.pkgd.min.js"></script>

<script>
  
var imgLoad = imagesLoaded('img');

var progressBar = jQuery(".c-preloader__progress"),
    count = jQuery(".c-preloader__count"),
    images = jQuery("img").length,
    loadedCount = 0,
    loadingProgress = 0;
 
var tlProgress = new TimelineMax({
    paused: true,
    onUpdate: countPercent,
    onComplete: loadComplete
});

tlProgress.to(progressBar, 1, {width:"100%"});

imgLoad.on('progress', function(instance, image) {
    loadProgress();
});
 
function loadProgress() {
    loadedCount++;
    loadingProgress = (loadedCount / images);
    console.log(loadingProgress);

    TweenMax.to(tlProgress, 1, {progress: loadingProgress});
}

function countPercent() {
    var newPercent = (tlProgress.progress() * 100).toFixed();
    count.text(newPercent + "%");
}

function loadComplete() {
    var tlEnd = new TimelineMax();
    tlEnd
        .to(count, 0.5, {autoAlpha: 0})
        .to(".c-preloader", 0.5, {scaleX: 0, transformOrigin: "center right"});
}

</script>
/* Default state: transparent background */
#brx-header.sticky {
  position: sticky;
  top: 0;
  transition: opacity 0.5s ease, background-color 0.5s ease;
  opacity: 1;
  visibility: visible;
  background-color: transparent !important; /* Start with transparent background */
}

/* Hidden state when scrolling down */
#brx-header.sticky.nav-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background-color: transparent !important; /* Stay transparent when hidden */
}

/* Visible state when scrolling up: background becomes black */
#brx-header.sticky.nav-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.5) !important; /* Background becomes black when scrolling up */
}
document.addEventListener('DOMContentLoaded', function () {
  let lastScrollTop = 0;
  const nav = document.querySelector('#brx-header.sticky'); // Ensure this targets the correct header element
  let hasScrolledDown = false; // Track if the user has scrolled down

  // Listen for the scroll event on the window
  window.addEventListener('scroll', function () {
    let scrollTop = window.pageYOffset || document.documentElement.scrollTop;

    console.log('Scroll position:', scrollTop); // Check scroll position in console

    if (scrollTop > lastScrollTop) {
      // User is scrolling down
      console.log('Scrolling down');
      nav.classList.remove('nav-visible');
      nav.classList.add('nav-hidden');
      hasScrolledDown = true; // User has scrolled down
    } else if (scrollTop < lastScrollTop && hasScrolledDown) {
      // User is scrolling up and has already scrolled down
      console.log('Scrolling up');
      nav.classList.remove('nav-hidden');
      nav.classList.add('nav-visible');
    }

    // Update the last scroll position
    lastScrollTop = scrollTop;
  });
});

Nazir Miya: Harvesting Hope Through Water Security

  • 2:14 min

  • 0 comments
Image: Nazir Miya with estab­lished a rainwater collection centre, Kapilvastu

In recent years, the effects of climate change have been deeply felt in Mahara­jgunj Munic­i­pality of Kapil­vastu District, Nepal. Prolonged droughts, drying water sources, and erratic rainfall have made water increas­ingly scarce. When the monsoon does arrive, it often brings sudden floods that damage crops, homes, and liveli­hoods leaving farming commu­nities trapped between drought and disaster.

*Nazir Miya, a resident of Semari Village in Ward No. 9, has witnessed these changes firsthand. “Water has become seasonal,” he explains. “In the past, water was plentiful. Now, by the end of January, most sources dry up completely, and during the rainy season, we live in fear of floods.”

For years, Nazir and other farmers struggled to survive. During dry periods, under­ground water levels dropped so low that drilling was ineffective and expensive. Many house­holds were forced to rely on shallow borings and tube wells, draining their limited income while still facing uncer­tainty about irrigation.

Recog­nizing this growing crisis, INF Nepal, in joint partnership with Mahara­jgunj Munic­i­pality, estab­lished a rainwater collection centre in the 2025. INF contributed NPR 235,000, while the munic­i­pality invested NPR 1,000,000 to build a sustainable, community-managed solution.

Located centrally among vulnerable commu­nities including Semari, Bhagwanpur, Aurhawa, and Bhanpur the centre spans over six kachhi bighas of land. It captures excess monsoon runoff and stores it for use during the dry season, trans­forming a once-destructive force into a life-saving resource.

Today, more than 1,000 kachhi bighas of farmland receive reliable irrigation, directly benefiting over 300 house­holds. Farmers are now able to grow paddy and wheat more produc­tively and no longer spend scarce time and money installing and maintaining tube wells. The saved resources are reinvested into farming and other income-gener­ating activities.

Image: Pipahariya Irrigation Project Brief

For Nazir, the change has been signifiant. “Now we don’t worry about irrigation,” he says with relief. “We get water when we need it. Even when fields nearby are dry, ours receive regular irrigation.”

The collection centre will soon be reinforced with iron outlets to improve water regulation and protect the structure, ensuring long-term use. The munic­i­pality has committed to maintaining the facility as a permanent climate adaptation measure for the community.

For families like Nazir’s, this centre is more than infra­structure it is a lifeline. This is how INF is collab­o­rating with local commu­nities and government to create practical, low-cost solutions to climate change. As Nazir puts it, “Hundreds of people like me can now say no to an uncertain future of misery and yes to relief, resilience, and hope for a better life.”

*Name changed for anonymity

Share this post:

Post tags