Barba.js gives a nice helper that will help you to associate a
Container with a
All the transitions need to extend the Barba.BaseView object.
To associate a
View with a
Container, it's enough to specify a common namespace:
It's suggested to .init() the Views before calling Pjax.start() - In this way Pjax.start() will emit onEnter() and onEnterCompleted() for the current view.
If you don't like data-namespace you can change it, see the Dom API section.