MoOx / pjax

Easily enable fast Ajax navigation on any website (using pushState + xhr)
MIT License
1.43k stars 124 forks source link

Route Specific Transitions #223

Open ldrummond opened 4 years ago

ldrummond commented 4 years ago

Is there a way to create route specific transitions with Pjax? Does Pjax expose the destination pathname on a pjax:send event, to allow for adding classes based on destination route at the beginning of the transition?

Recommendations or suggestions on how to achieve this would be appreciated! Additionally, would this be a helpful feature for others?