Share Posted January 13, 2018 Hello, I'm a newbie, I'm working on a push menu, but it doesn't trigger menu item animation on the first click. I need some help Thank you! See the Pen goKEry by zsoltheg (@zsoltheg) on CodePen Link to post Share on other sites
Share Posted January 14, 2018 There is no width here. var anchoMenu = -elMenu.width(); $("li").css("transform", "matrix(1, 0, 0, 1," + anchoMenu + ", 0"); And it would be better to let GSAP handle setting the transform if you're going to animate it. elMenu.css("width", "100%"); var anchoMenu = -elMenu.width(); elMenu.css("width", 0); TweenLite.set(lineas, { x: anchoMenu }); 4 Link to post Share on other sites
Author Share Posted January 14, 2018 Wowww, Thank you very much! Perfect! 1 Link to post Share on other sites