Run custom code
Most time, you need to run custom code on your website in order to refresh a component, reset a library or anything else according to the user navigation.
Where?
Barba Views
is the best place to run custom code.
They are conditioned by a unique page namespace
.
1 | barba.init({ |
In order to split the animation part from the standard code, we discourage you to run custom code inside
Transitions
as they are not designed for this.