One of my pet projects was to get my navigation bar to slide in from the left side on a button click and slide out on an other click.
I have researched many sites and forums until I decided to use the setInterval function as the core of my navigation bar.
I created my test code for a navigation bar and rewrote it many times but the animation stayed way to slow. I wanted to get an animation like the one on the website of IBM on the top-right corner (https://www.ibm.com/us-en/?lnk=fcc). Or at least try to match the speed of it without ease in and out.
Here is the link to my code: https://codepen.io/Bromin257/pen/xBzZvE
Is there any way to solve this with setInterval or should I try other methods? Any help would be appreciated.