Works with either history mode, and with or without global interception:
// Hash-mode router? Tell the adapter so the animated// target matches the address bar:installGlyphnav(app,{historyMode:'hash'})// Leave the router untouched, animate only explicit calls:installGlyphnav(app,{intercept:'none'})// then: useNuxtApp().$glyphnav.navigate('/dashboard')
Every entry point accepts the same options object:
installGlyphnav(app,{duration:250,// total animation time (ms), spread over all frameseffect:'scramble',// 'decode' grows + resolves; 'scramble' bursts, then locks randomlycommit:'before',// navigate instantly, animate on top ('after' = classic order)intercept:'router',// wrap router.push/replace ('none' = explicit-only)historyMode:'history',// or 'hash' for createWebHashHistoryscope:'tail',// animate only the part that differs from the current pathanimatePopState:true,// also animate browser back/forward (opt-in)});
Served under the /nuxt base via Nuxt's app.baseURL; the Nuxt plugin wraps router.push so every <NuxtLink> and navigateTo() animates. The title link is a plain anchor (full page load back to the picker).