Skip to content

Commit

Permalink
add Medium-zoom like effect
Browse files Browse the repository at this point in the history
  • Loading branch information
saleem-hadad committed Sep 24, 2018
1 parent 59c89d0 commit aa3dcce
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 23 deletions.
33 changes: 12 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
"dependencies": {
"docsearch.js": "^2.5.2",
"medium-zoom": "^1.0.2",
"smoothscroll-for-websites": "1.4.6",
"vue2-transitions": "0.2.3"
}
Expand Down
2 changes: 1 addition & 1 deletion publishable/assets/js/app.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion resources/js/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
require('./bootsrap');

import Vue from "vue";
import Argon from "./plugins/argon-kit";
import mediumZoom from 'medium-zoom'
import Argon from "./plugins/argon-kit"

Vue.use(Argon);
Vue.config.productionTip = false;
Expand Down Expand Up @@ -31,6 +32,7 @@ const app = new Vue({
this.activateCurrentSection()
this.parseDocsContent()
this.setupKeyboardShortcuts()
mediumZoom('img')
},
methods: {
handleSidebarVisibility() {
Expand Down

0 comments on commit aa3dcce

Please sign in to comment.