We were discussing the issue of animations between page linking on this post https://greensock.com/forums/topic/17740-page-transitions-with-loading-element/
There are some interesting frameworks that handle this sort of thing particularly barba.js.
According to the transition page on the barba.js site you can create animation based on any library, and quite easily, so GSAP should be a go for sure with this.
I'll be very interested to see if you can make workable with WP. Good luck.
Thanks again for the feedback!
I'm going to try out both Animsition and BarbaJS and see where I end up. The initial idea was just to have an out transition, then a white screen with loader and an in transition which I managed to do with Animsation.
Barba.js does look interesting indeed if I can make it work with WP. I'm not keen on the one-page idea as the website contains alot of different pages and projects. I'll keep you posted on the progress though if I come up with a solution!
Thanks!
I use barba.js and only change loaded to true when the respective promise gets fulfilled. First time using promises; strange at first, but I guess I'll get the hang of it and start to see the advantages.