vue-anchor-router-link
Workaround for VueRouter issue #1668 of https://github.com/vuejs/vue-router/issues/1668.
Project usage
Import AnchorRouterLink from packages and add it to components. Check out the project examples.
...components:AnchorRouterLink...
Use VueAnchorRouterLink to route to an html anchor tag. Use the additional scrollOptions to create a scroll animation. Make sure you implement the same scroll settings like in the VueRouter scrollBehavior function. Leave empty to jump directly to hash.
Jump animation
Scrolls to anchor tag with jump animation.
To Start
Scroll Animation
Scrolls to anchor tag with scroll animation.
To Start
For more details on scroll animation see: https://rigor789.github.io/vue-scrollto/#/docs
Project setup
npm install
Compiles and hot-reloads for exampless
# Example 1 (jump animation):npm run serve-example1# Example 2 (scroll animation):npm run serve-example1
Lints and fixes files
npm run lint