TweenMax.to(searchBlock, 1, {
css:{
className: '+= nav__search--active'
},
delay: 1.5,
});
this code is not working, but in v. 2.1.3 it is work!
Help me pls.
Yes, as mentioned in the release notes, GSAP 3 doesn't support className tweens because they're just generally a bad idea in most cases:
From a performance perspective, they require looping through every single CSS property available to find which ones change between the start and end, and then isolating those for the tween. It's just a lot of work that could be avoided by simply being explicit with your animations about which properties you want to animate.
From a code perspectiv