Tried to do it but couldnt get it working, really should learn Javascript.
I created:
var links = document.querySelector('#navigation ul li');
var myAnimation = function animation() {
tl.reversed() ? tl.play() : tl.reverse();
};
and then i did this:
links.addEventListener('click', function() {
myAnimation.call();
});
Thanks for ur Reply, that worked pretty well for me!
One thing thats still not working would be to disapear the Nav after clicking a Link, cant get it to work.
Hello,
Im new to GSAP and want to learn more about the Animations i can create, first i tried to do a Burger Nav with opening and closing animations, got the opening but could figure out how to do the closing one.
Thanks for the help!