Instructions

Instructions

Lenis Smooth Scroll

In this template we used Lenis Smooth Scroll library, if you want to make site scroll faster or even smoother tweak values of 'wheel multiplier' and 'lerp' in site settings custom code tab!

If you want to remove smooth scroll, remove this script code from site settings.

<script src="https://unpkg.com/lenis@1.2.3/dist/lenis.min.js"></script>
<script>
let lenis = new Lenis({
  lerp: 0.1,
  wheelMultiplier: 0.7,
  gestureOrientation: "vertical",
  normalizeWheel: false,
  smoothTouch: false,
});

function raf(time) {
  lenis.raf(time);
  requestAnimationFrame(raf);
}

requestAnimationFrame(raf);
</script>
Animated Counter Instructions

How to use: Add count-up attribute to any text element containing a number (e.g. "1,234", "50K", "99.9%").

Animation auto-detects the number + keeps suffixes.​

‍Customization options:

Trigger timing:
Change start: "top 80%" →"top 90%" (triggers earlier)"center center" (middle of screen)"top bottom" (fully visible)

‍Blur effect: Modify blur(6px) → blur(10px) (stronger) or blur(2px) (subtle)

‍Speed: Adjust both durations:duration: 2.25 (blur) → 1.5 (faster)duration: 2 (count) → 3 (slower)

‍Easing: Replace power2.out →power1.out (linear)power4.out (snappier)expo.out (dramatic)

‍Decimals: Change Math.round(counter.val) → counter.val.toFixed(1) for 1 decimal placeMultiple counters:

Add count-up to as many text elements as needed - each runs independently. Runs once per element.

<script>
gsap.registerPlugin(ScrollTrigger);

document.querySelectorAll("[count-up]").forEach(function(el) {
  var raw = el.textContent.trim();
  var target = parseFloat(raw);
  var suffix = raw.replace(/[\d,\.]/g, "");
  var counter = { val: 0 };

  var tl = gsap.timeline({
    scrollTrigger: {
      trigger: el,
      start: "top 80%",
      once: true
    }
  });

  tl.fromTo(el,
    { filter: "blur(6px)" },
    { filter: "blur(0px)", duration: 2.25, ease: "power2.out" },
    0
  );

  tl.to(counter, {
    val: target,
    duration: 2,
    ease: "power2.out",
    onUpdate: function() {
      el.textContent = Math.round(counter.val).toLocaleString() + suffix;
    }
  }, 0);
});
</script>