I've been animating a counter in this way, but it no longer works after upgrading to gsap 3.11. I don't see anything in the release notes that could cause it, so not sure if it's a bug?
What happens now is that the text is simply replaced by a 0, but it does not increment as before. I tried removing the scrolltrigger, but that does not seem to be the issue - it does not animate regardless.
const numbers = document.querySelectorAll('#number-counter');
gsap.from(numbers, {
textContent: 0,
duration: 2,
snap: { textContent: 1 },
scrollTrigger: { trigger: section, start: 'top bottom', markers: true },
});