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

hoverzoom

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hoverzoom

Dependency free zoom element on hover

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

HoverZoom

Dependency free zoom element on hover

Setup

npm install hoverzoom
<div id="container">
	<div>Some content for zooming</div>
</div>
import HoverZoom from "hoverzoom";

const hoverZoom = new HoverZoom("#container", options);

Options

OptionTypeDefaultDescription
modestringcontaincontain, cover, autoHeight or autoWidth
paddingnumber | object{top: 0, right: 0, bottom: 0, left: 0}Sets padding for hover

Methods

MethodArgumentDescription
updateScaleUpdate scale value according to sizes of container and it's content
updateupdateScale = trueRedraw

License

MIT

Copyright © 2017 Eugene Nesvetaev

Keywords

FAQs

Package last updated on 24 Aug 2017

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