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

Meena’s Rebirth: A Journey of Courage, Surgery, and Hope

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 also the hope and independence to pursue a brighter future.

  • 1:27 min

  • 0 comments

Meena, a 21-year-old from Bara dis­trict, has faced a life­time of chal­lenges, bat­tling both leprosy and the stigma that came with it. At just 11, she was dia­gnosed with leprosy, and the disease soon left visible marks on her hands and legs. Despite start­ing Multi-Drug Therapy (MDT), her con­di­tion worsened over the years, leading to clawed hands and painful deform­it­ies. The lack of con­sist­ent medical care only deepened her suf­fer­ing, and by her late teens, Meena was not only strug­gling with phys­ical pain but also with soci­etal rejection.

As if the phys­ical toll wasn’t enough, the emo­tional strain of dis­crim­in­a­tion pre­ven­ted Meena from pur­su­ing her dreams, includ­ing mar­riage. Her con­di­tion and society’s pre­ju­dices made it impossible for her to find a partner, and despite her high stand­ards, her options remained limited. Yet Meena’s story took a hopeful turn when she learned about Green Pas­tures Hos­pital (GPH) from a neigh­bour. Inspired by their success, Meena con­sul­ted with a plastic surgeon at GPH, who recom­men­ded recon­struct­ive surgery for her hands. Meena under­went the surgery in two stages, first on her right hand and later on her left. Thanks to the charity support and excel­lent care at GPH, Meena’s hands were restored, and with them, her hope for a brighter future.

Coming from a large family of nine sib­lings, Meena was always an inspir­a­tion to her loved ones, espe­cially her younger brother, who sup­por­ted her both fin­an­cially and emo­tion­ally. Despite her chal­lenges, she never gave up. With her new­found inde­pend­ence after surgery, Meena now has the con­fid­ence to pursue skills train­ing and secure a job, aiming for fin­an­cial freedom. Her determ­in­a­tion to over­come adversity fuels her vision of a future filled with pos­sib­il­ity and empowerment.

(Name changed for anonymity)

Share this post: