Category "gsap"

GSAP scrolling breaks when switching browser tabs

I've noticed some strange behavior of GSAP scrolling in GatsbyJS. I have a container with full-page sections that are scrolled with GSAP. I open a tab in a brow

How do I make GSAP find the "most optimal" rotation method?

I want my mesh to rotate at 90 degree angles in all directions, but make GSAP find the most "optimal rotation". So if I press 1 it'll be at this.meshName.rotati

JS: How to calculate face value after dice roll animation

I've created a neat little dice roll animation. It is essentially 6 div elements inside a wrapper container that has been styled into a cube via CSS. I've got i

Sveltekit Greensock Scrolltrigger breaking in production

I have a Green Sock animation that is working fine in development, but breaks in yarn run preview and production: ScrollTrigger-4a410f45.js:9 Uncaught (in promi