Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kidonng/saber-plugin-medium-zoom

🔍 medium-zoom plugin for Saber
https://github.com/kidonng/saber-plugin-medium-zoom

Last synced: 26 days ago
JSON representation

🔍 medium-zoom plugin for Saber

Awesome Lists containing this project

README

        

# `medium-zoom` for Saber

[![Latest version](https://img.shields.io/npm/v/saber-plugin-medium-zoom.svg)](https://npm.im/saber-plugin-medium-zoom)
![npm downloads](https://img.shields.io/npm/dt/saber-plugin-medium-zoom.svg)
[![License](https://img.shields.io/github/license/kidonng/saber-plugin-medium-zoom.svg)](LICENSE)
[![Mentioned in Awesome Saber](https://awesome.re/mentioned-badge.svg)](https://github.com/saberland/awesome-saber)

[medium-zoom](https://github.com/francoischalifour/medium-zoom) plugin for [Saber](https://github.com/saberland/saber).

## Install

- `npm i saber-plugin-medium-zoom`
- `yarn add saber-plugin-medium-zoom`

## Usage

Add the plugin to your Saber config and we will handle the rest:

```js
module.exports = {
// ...
plugins: [
{
resolve: 'saber-plugin-medium-zoom',
options: {
// Default selector
selector: '[data-zoomable]',
// See https://github.com/francoischalifour/medium-zoom#options for details
options: {
margin: 24,
background: '#BADA55',
scrollOffset: 0,
container: '#zoom-container',
template: '#zoom-template',
}
}
}
]
}
```