I have created a fork of this cool swipe drawer navigation: https://codepen.io/carl-victor-fontanos/pen/NQPLGW which works perfectly when swiping from Left to Right.

I am currently attempting to enable swiping from Right to Left, but I was only able to get it partially working. Here is what I've got so far: https://codepen.io/carl-victor-fontanos/pen/gVbdYq -- in this pen you will notice that it now opens from Right to Left, but the problem is that the swipe is still in reverse which is not what I want. I have modified the CSS to get the position to appear in right instead of left, and in the Javascript side I have changed translateX from negative to positive value.

Hopefully someone can help me get this working, as I have been trying to solve this for hours.