Apparently GSAP is able to add a CSS class… which is weird because to my knowledge none of their tutorials go over that. You gotta troll the forums or read the docs.
But wouldn’t it be awesome if there was a tool out there that did something similar to “diffing” in the DOM? I’m thinking something like GSAP that allowed for more modular code.
Total control of timeline + diffing FTW!
GSAP has all this so I’m back in love with it.
Codepen for evidence:
On feature: I’m not the kind of feature MY OWN answer… but if anyone in the future stumbles upon this… here is your answer.