Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
blowup
Advanced tools
Readme
A jQuery plugin for customizable image magnification.
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();
})
Listed are the customization options that blowup.js
allows.
Parameter | Purpose | Default |
---|---|---|
round | If you want the magnification lens to be round. Setting this to false will give you a square lens. | true |
width | Lens Width in pixels. | 200 |
height | Lens height in pixels. | 200 |
background | Color for background (will be visible on image edges). | "#FFF" |
shadow | CSS style for lens shadow. | "0 8px 17px 0 rgba(0, 0, 0, 0.2)" |
border | CSS style for lens border. | "6px solid #FFF" |
cursor | Set to false if you do not want the crosshair cursor visible. | true |
zIndex | z-index value of the lens. | 999999 |
scale | Scale factor for zoom. | 1 |
customClasses | Additional CSS classes to add to the magnification (separated by spaces). | "" |
$("img").blowup({
"background" : "#F39C12",
"width" : 250,
"height" : 250,
"customClasses" : "class1 class2"
})
FAQs
A jQuery plugin for customizable image magnification.
The npm package blowup receives a total of 71 weekly downloads. As such, blowup popularity was classified as not popular.
We found that blowup demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.