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;
  });
});

Landslide in Pokhara and INF’s Response

In July 2024, relentless monsoon rains triggered severe flooding and landslides across Nepal, displacing communities, damaging homes, and cutting off vital roadways. As rivers swelled and landslides swept through mountainous regions, areas like Gandaki Province bore the brunt, with communities facing devastating losses and rising challenges. The situation prompted a swift response from INF Nepal,…

  • 1:55 min

  • 0 comments

Heavy monsoon rains around July led to many rivers rising to dangerous levels across the country. Disrup­tions due to flooding and landslides are ongoing across many parts of Nepal. Flood­waters have flooded parts of the country and dozens of landslides have been reported in the mountainous terrain. Parts of Gandaki Province are amongst the worst affected areas. Author­ities reported at least 14 weather-related fatal­ities in Kaski district alone since the monsoon started. Over 1,000 people were displaced, and over 200 homes have been damaged or destroyed by flooding across Nepal. Flooding and landslides across the country have blocked many roads. Over 50 people are still missing after a landslide swept two buses into the Trishuli River near Chitwan.

On the night of 11 July 2024, a devas­tating landslide struck Puran­chaur in Pokhara-19, tragi­cally claiming seven lives and causing signif­icant property damage. The landslide, triggered by heavy rainfall, affected the areas of Tallakot Thati and Puraun­chaur Danda, covering homes with large volumes of mud.

Local author­ities, Nepal Police, and Nepal Red Cross volun­teers promptly conducted search and rescue opera­tions. Despite their swift response, seven individuals lost their lives—six in one household and one in a neigh­bouring house. Additionally, one person sustained injuries but has since been discharged from the hospital. On that night a total of 11 people were killed due to landslides in various locations in Pokhara.

INF Nepal, in collab­o­ration with Asal Chhimekee Nepal, responded quickly to support the affected families in Puran­chaur. On 12 July we distributed 36 tarpaulins, P‑foam and 18 blankets to provide basic shelter and protection from the rainfall. These supplies were distributed directly to the doorsteps of the most affected families, ensuring they received immediate relief. The affected families are currently staying with relatives due to the fear of further landslides.

The local community remains in shock, with several house­holds evacu­ating their homes to seek refuge in safer locations. INF Nepal is closely monitoring the situation, with ongoing efforts to provide necessary support and address any additional needs.

The community has expressed gratitude for the immediate support received, highlighting the positive impact of having basic shelter and warmth during this difficult time. Moving forward, INF Nepal will continue to coordinate with local author­ities to monitor the situation, gather accurate data on the total number of affected house­holds, and prepare to provide further assis­tance as needed.

Share this post: