Hello!
Thank you for your answer, even though InertiaPlugin is a great and much better solution I found out why it was not working as I expected.
It turn out in the original code I was using a variable for the transitions, but when I copied and pasted the code on codepen I did not realize that.
See the Pen KKZrNqr by maxrpark (@maxrpark) on CodePen
After I fixed that it works as the one I created with Vue.
It does not look as cool as the one using InertiaPlugin but at least now it snap.
The bug was so simple that it was the last thing I could imagine, I almost went crazy.
Again, many thanks for your quick response and solution.