# @mdpress/plugin-medium-zoom
medium-zoom plugin
# Install
yarn add -D @mdpress/plugin-medium-zoom
# OR npm install -D @mdpress/plugin-medium-zoom
# Usage
Simple:
module.exports = {
plugins: ['@mdpress/medium-zoom']
}
With options:
module.exports = {
plugins: {
'@mdpress/medium-zoom': {
selector: 'img.zoom-custom-imgs',
// medium-zoom options here
// See: https://github.com/francoischalifour/medium-zoom#options
options: {
margin: 16
}
}
}
}
# Options
# selector
- Type:
string
- Default:
.theme-default-content :not(a) > img
Note that .theme-default-content
is the class name of <Content />
component in default theme.
# options
- Type:
object
- Default:
undefined
Options for medium-zoom.