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

Terms and Conditions

Terms and Conditions

Welcome to the INF Nepal website. By accessing or using this site, you agree to the following terms and conditions. Please read them carefully.

1. Use of Content

All content on this website, including text, images, graphics, and downloadable materials, is the property of INF Nepal or its content suppliers. You may view, download, and print content from the site for personal, non-commercial use, provided you keep all copyright and other proprietary notices intact. Any other use, including reproduction, modification, distribution, or republication, without INF Nepal’s prior written consent, is strictly prohibited.

2. Website Availability

INF Nepal makes every effort to ensure that this website is available and functional at all times. However, we cannot guarantee that the site will be available without interruption. INF Nepal reserves the right to suspend or discontinue all or part of the website at any time without prior notice.

3. External Links

Our website may contain links to other sites. These links are provided for your convenience only. INF Nepal has no control over the content or availability of these sites, and we do not endorse or take responsibility for the information or services provided by third-party sites.

4. Privacy Policy

By using this website, you agree to the terms of our Privacy Policy, which is available here

5. Disclaimer

INF Nepal strives to ensure that the information on this website is accurate and up-to-date. However, the site and its content are provided on an “as-is” basis, and INF Nepal makes no representations or warranties of any kind, express or implied, regarding the accuracy, completeness, or reliability of the information or services provided.

6. Limitation of Liability

To the maximum extent permitted by law, INF Nepal shall not be liable for any direct, indirect, incidental, consequential, or punitive damages arising out of or related to your use of or inability to use this website or its content.

7. Changes to Terms

INF Nepal reserves the right to modify these Terms and Conditions at any time. Any changes will be posted on this page. Your continued use of the website constitutes acceptance of any updated Terms and Conditions.

8. Contact Us

If you have questions about these Terms and Conditions, please contact us at:

Email: [email protected]
Phone: +977 [0]61 570 111