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

Handover of Fistula Treatment Centre Marks a New Chapter for Karnali Province

On 20 October 2024, INF Nepal officially handed over the Obstetric Fistula Treatment Centre to the Province Hospital in Karnali, marking a new phase in women’s healthcare. Leaders including Minister Ghanshyam Bhandari and INF Nepal Chairman Ram Chandra Timothy acknowledged Dr. Shirley Heywood’s contributions and thanked funding partners for their vital support. INF Nepal remains…

  • 1:25 min

  • 0 comments

On 20 October 2024, a sig­ni­fic­ant mile­stone was reached in the journey of women’s health­care in Nepal as the Obstet­ric Fistula Treat­ment Centre was offi­cially handed over to the Province Hos­pital in Karnali Province. Since its estab­lish­ment in 2009, this centre has been oper­ated by INF Nepal in close part­ner­ship with the hos­pital, provid­ing life-chan­ging treat­ment and care for women affected by obstet­ric fistula across western Nepal. This col­lab­or­a­tion has delivered essen­tial health­care ser­vices, improv­ing the lives of count­less women in the region.

The han­dover cere­mony was offi­ci­ated by Ghan­shyam Bhandari, Min­is­ter for Social Devel­op­ment of Karnali Province, along­side Ram Chandra Timothy, Chair­man of INF Nepal. The event was also an oppor­tun­ity to extend special thanks to Dr. Shirley Heywood for her out­stand­ing ded­ic­a­tion and con­tri­bu­tions to this mission, as well as to the many health­care workers who have played a role in the centre’s success. Dr. Heywood’s com­mit­ment has been instru­mental in build­ing and sus­tain­ing a service that provides dignity and hope for women in need.

INF Nepal acknow­ledges the invalu­able support of our funding part­ners, whose con­tri­bu­tions have been essen­tial in estab­lish­ing and main­tain­ing the fistula treat­ment ser­vices over the years. Your support has left a lasting impact, provid­ing access­ible health­care and a better quality of life for affected women.

As INF Nepal hands over oper­a­tions to the Province Hos­pital, the organ­isa­tion remains deeply com­mit­ted to improv­ing health­care in the Karnali region, sup­port­ing ini­ti­at­ives that align with our mission to bring sus­tain­able and inclus­ive health­care to all. We look forward to seeing the Province Hos­pital con­tinue this vital work, empowered by the found­a­tion laid through our partnership.

Thank you for your ongoing support in helping make this vision a reality!

Share this post: