A gitbook plugin for zooming images like Medium
npm install gitbook-plugin-medium-zoomIn you gitbook's book.json file, add medium-zoom to plugins list.
Sample book.json file for gitbook version 2.0.0+
``json`
{
"plugins": [
"medium-zoom"
]
}
Sample book.json file for gitbook version 2.0.0+ and custom options
`json`
{
"plugins": [
"medium-zoom"
],
"pluginsConfig": {
"medium-zoom": {
"margin": 24,
"background": "#BADA55",
"scrollOffset": 0
}
}
}
1. Run gitbook install. It will automatically install medium-zoom gitbook plugin for your book. This is needed only once.gitbook build
2. Build your book () or serve (gitbook serve`) as usual.