Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-remark-images-zoom

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-remark-images-zoom

Add zoom to remark images.

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

👀 gatsby-remark-images-zoom

Bring medium-zoom to gatsby-remark-images

Note: this plugin requires gatsby-remark-images and gatsby-transformer-remark

Install

yarn add gatsby-remark-images-zoom

How to use

// In your gatsby-config.js, under gatsby-transformer-remark plugins

plugins: [
{
  resolve: `gatsby-transformer-remark`,
  options: {
    plugins: [
      `gatsby-remark-images`,
      `gatsby-remark-images-zoom`,
    ],
  }
];

Configuration

All options from medium zoom are available:

PropertyTypeDefaultDescription
marginnumber0The space outside the zoomed image
backgroundstring"#fff"The background of the overlay
zIndexnumber42The z-index of the overlay
scrollOffsetnumber40The number of pixels to scroll to close the zoom
containerstring | HTMLElement | objectnullThe viewport to render the zoom in
templatestring | HTMLTemplateElementnullThe template element to display on zoom

Keywords

FAQs

Package last updated on 18 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc