
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.
CSS3 Transitions and Transforms achieved through JavaScript.
Full documentation and examples: https://shiftjs.drzwebdev.com/
npm install shiftjs
In older browsers, some transform-based animations will not work if the browser does not natively support the feature. All other CSS changes will be applied normally albeit without a smooth CSS3 transition.
Either method below will suffice...
shift(selector [, context]);
var el = new Shift(selector [, context]);
Transition several properties at once.
shift(selector).animate({
prop1: 'value1',
prop2: 'value2',
prop3: 'value3'
}), duration, easing, complete);
Fades-out a DOM element.
shift(selector).fadeOut(duration, easing, complete);
Fades-in a DOM element.
shift(selector).fadeIn(duration, easing, complete);
Defines a 2d rotation.
shift(selector).rotate(degrees, duration, easing, complete);
Defines a rotation along the X axis.
shift(selector).rotateX(degrees, duration, easing, complete);
Defines a rotation along the Y axis.
shift(selector).rotateY(degrees, duration, easing, complete);
Scales a DOM element. (proportional or non-proportional)
shift(selector).scale(number, duration, easing, complete); => proportional
shift(selector).scale([x, y], duration, easing, complete); => non-proportional
Scales a DOM element's X value.
shift(selector).scaleX(number, duration, easing, complete);
Scales a DOM element's Y value.
shift(selector).scaleY(number, duration, easing, complete);
Defines a transition: unlike animate(), this method transitions one property at a time.
shift(selector).set(property, value, duration, easing, complete);
Skews a DOM element. (proportional or non-proportional)
shift(selector).skew(number, duration, easing, complete); => proportional
shift(selector).skew([x, y], duration, easing, complete); => non-proportional
Skews a DOM element's X value.
shift(selector).skewX(number, duration, easing, complete);
Skew's a DOM element's Y value.
shift(selector).skewY(number, duration, easing, complete);
Defines a translation along the X and Y axis.
shift(selector).translate(number, duration, easing, complete); => X === Y
shift(selector).translate([x, y], duration, easing, complete); => X !== Y
Defines a translation along the X axis.
shift(selector).translateX(number, duration, easing, complete);
Defines a translation along the Y axis.
shift(selector).translateY(number, duration, easing, complete);
Applies a transition-delay to the current animation. If the number argument is omitted, the default delay value is "0.5".
shift(selector).fadeOut().delay(number); => in seconds
Alters the transform-origin of the current transform animation. The default transform-origin is "50%, 50%".
shift(selector).rotate(number).origin(number, number); => each number argument for origin() is the X and Y percentage value, respectively
Default easing value is "ease"...
shift(selector).fadeOut(duration, [0, 1, 0.5, 0]); => the easing array will be converted to a cubic-bezier curve
The duration parameter is always in seconds, not in milliseconds. If omitted, the default value is 0.5.
shift(selector).fadeOut(); => defaults to 0.5-second transition
shift(selector).fadeOut(2); => 2-second transition
The complete parameter comes in handy for more involved sequential animations. This parameter triggers a callback on transitionend.
shift(selector).set(property, value, duration, easing, function() {
// do stuff here
});
FAQs
CSS3 Transitions and Transforms achieved through JavaScript.
We found that shiftjs 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.