Socket
Socket
Sign inDemoInstall

blowup

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    blowup

A jQuery plugin for customizable image magnification.


Version published
Weekly downloads
92
increased by4.55%
Maintainers
1
Install size
2.85 MB
Created
Weekly downloads
 

Readme

Source

blowup.js

A jQuery plugin for customizable image magnification.

Check out a demo!

Usage

You can install blowup through npm:

$ npm install blowup

or through bower:

$ bower install blowup

Alternatively, download the package and reference the blowup.js file in your HTML file. Ensure you have included the latest stable jQuery version before including blowup.js.

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script type="text/javascript" src="lib/blowup.js"></script>

Then, apply the blowup effect to your image.

$(document).ready(function () {
    $("img").blowup();
})

Configuration Parameters

Listed are the customization options that blowup.js allows.

ParameterPurposeDefault
roundIf you want the magnification lens to be round.
Setting this to false will give you a square lens.
true
widthLens Width in pixels.200
heightLens height in pixels.200
backgroundColor for background (will be visible on image edges)."#FFF"
shadowCSS style for lens shadow."0 8px 17px 0 rgba(0, 0, 0, 0.2)"
borderCSS style for lens border."6px solid #FFF"
cursorSet to false if you do not want the crosshair cursor visible.true
zIndexz-index value of the lens.999999
scaleScale factor for zoom.1
customClassesAdditional CSS classes to add to the magnification (separated by spaces).""
Example
$("img").blowup({
    "background" : "#F39C12",
    "width" : 250,
    "height" : 250,
    "customClasses" : "class1 class2"
})

Keywords

FAQs

Last updated on 05 May 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc