Hello GreenSock forum!
I have some trouble with setting up my icon animation. If I append variables in local function, my animation start on click but not reverse on another.
Animation works if I have absolute values (without variables) but I want to have shorter code like currently. When my variables goes into global variables (like in CodePen example) my animation works but have some issues with frames and start glitching / lagging.
I would be grateful for some help and examples to try it out.