alpine-ajax icon indicating copy to clipboard operation
alpine-ajax copied to clipboard

Smooth transition

Open pfisterjonas opened this issue 6 months ago • 1 comments

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!

pfisterjonas avatar Jul 25 '24 22:07 pfisterjonas