alpine-ajax
alpine-ajax copied to clipboard
Smooth transition
Hey Crayon!
Great project you got. I am using it currently for an SPA like navigation in my Django App.
It all works really well (except for back/forth button for which I am still messing around with popstate and programmatic ajax calls - can't have it all I guess ;) unless I missed a solution here too?).
Anyway, I was wondering what your approach would be to make smooth slide out and slide in transitions. I am currently using the ajax:before Event to slide out the content. When the content is loaded, the transition is automatically applied to slide in. Most of the time, the content is loaded before the transition finishes, sometimes the load takes longer and i'll have an empty page for a while. Do you have any suggestions? Can i somehow have more fine control?
Thanks, keep it up!