
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
jquery-shake
Advanced tools
The shake effect from jQuery UI extracted to be used as a standalone plugin.
h1. jQuery Shake
The shake effect from jQuery UI extracted to be used as a standalone plugin.
I needed to use the shake effect for a login page for a project inspired by the WordPress admin login page but I thought it silly to include the entirety of jQuery UI just for one effect, thus, I decided to extract the effect and have it work completely independent from jQuery UI.
Vanilla jQuery is required for this to work, along with the easing plugin if you want to use the easing functions.
From the jQuery UI docs:
h2. Description
Shakes the element multiple times, vertically or horizontally
h2. Options
direction (default: "left") Type: String A value of "left" or "right" will shake the element horizontally, and a value of "up" or "down" will shake the element vertically. The value specifies which direction the element should move along the axis for the first step of the effect.
distance (default: 20) Type: Number Distance to shake.
times (default: 3) Type: Number Times to shake.
speed (default: 140) Type: Number Animation duration.
easing (default: "easeInOutSine") Type: String The easing function to use.
callback (default: none) Type: function The callback function to use after animation end.
h2. Usage
Without options
bc.
bc. $(document).ready(function() { $('#shake-me-default').on("click", function() { $(this).shake(); }); });
With options
bc.
bc. $(document).ready(function() { $('#shake-me-option').on("click", function() { $(this).shake({ direction: "up", distance: 50 }); }); });
With callback
bc.
bc. $(document).ready(function() { $('#shake-me-callback').on("click", function () { $(this).shake(function () { alert('callback'); }); }); });
FAQs
The shake effect from jQuery UI extracted to be used as a standalone plugin.
The npm package jquery-shake receives a total of 133 weekly downloads. As such, jquery-shake popularity was classified as not popular.
We found that jquery-shake 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.