Home › Forums › JavaScript › Adding a class vs. Manipulating CSS › Reply To: Adding a class vs. Manipulating CSS
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:
http://codepen.io/GreenSock/pen/b128c65e197e46dfa8a980d229c45114
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.