Barba router allows you to use custom routes for page transitions.
This module adds a route rule to Barba, that is less important than
custom() but more than
namespace. Take a look at the transition rules for priority order and details.
Start to define your routes, then tell Barba to use the plugin before the
import barba from '@barba/core';
Barba router plugin
routes property accepts an array of
||String||Value to be used with transitions|
pathsupports dynamic segments
/product/:idand regular expressions
See the path-to-regexp for detailed documentation.