Flat Preloader Icon
/* 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;
  });
});

Stories

Through the inspiring stories of our patients, we witness how dedicated treatment and support are changing lives across Nepal. From overcoming leprosy and disabilities to receiving life-saving medical care, these real stories of healing and hope reflect the profound impact of INF’s work, showing how every journey is a testament to resilience, faith, and the…

All News & Stories:

All Stories

  • Filter By:

    Posted 1 year ago

  • Bina’s story is a reminder of how timely medical care can open doors to new opportunities. Her surgeries didn’t just restore her hearing — they gave her confidence, a chance...

    Posted 1 year ago

  • *Rani Rawal, a 22-year-old resident of Haatsijha, Kanakasundari Rural Municipality in Jumla, lives with her family of four. Her household includes her 32-year-old husband and their two sons, aged 8...

    Posted 1 year ago

  • Female community health volunteers (FCHV) play a crucial role ensuring the health and well-being of women and communities in Nepal. They are recruited locally, trained on basic primary health care,...

    Posted 1 year ago

  • *Bhim Maya lives in Ward No. 3 of Sunchahari Rural Municipality, Moulaban, with her mother-in-law, three daughters, and three sons. She grew up in Sunchahari-4 Suri in a family that struggled...

    Posted 1 year ago

  • Kishan Tamang’s story is one of resilience and determination. Born in Sardikhola, Pokhara, he lost his hearing at the age of four, facing a world full of barriers for the...

    Posted 2 years ago

  • Meena’s life was shaped by the physical and emotional toll of leprosy, but with reconstructive surgery at Green Pastures Hospital, she regained not only the use of her hands but...

    Posted 2 years ago

  • Gopal Shares Her Story:

    Gopal’s life was forever changed after a devastating road accident left him with a spinal cord injury, but through the unwavering support of his family and the expert care at Green Pastures Hospital, he found the strength to rebuild his life and hope for the future.

    In the past year alone, GPH treated 81 spinal cord injury cases and provided rehabilitation to 688 patients