Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
vue-scrolltoのプラグインを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizumaki committed Sep 29, 2022
1 parent 2b48a39 commit ae23088
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ const config: NuxtConfig = {
src: '@/plugins/axe',
ssr: true,
},
{
src: '@/plugins/vue-scrollto',
ssr: true,
},
],
/*
** Nuxt.js dev-modules
Expand Down
7 changes: 7 additions & 0 deletions plugins/vue-scrollto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import Vue from 'vue'
import VueScrollTo from 'vue-scrollto'

Vue.use(VueScrollTo, {
duration: 500,
easing: [0, 0, 0.1, 1],
})

0 comments on commit ae23088

Please sign in to comment.