
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@behance/flip
Advanced tools
A helper library for FLIP animations.
FLIP is an approach to animations that remaps animating expensive properties, like width, height, left and top to significantly cheaper changes using transforms. It does this by taking two snapshots, one of the element's First position (F), another of its Last position (L). It then uses a transform to Invert (I) the element's changes, such that the element appears to still be in the First position. Lastly it Plays (P) the animation forward by removing the transformations applied in the Invert step.
You can use the FLIP helper on its own, like this:
let flip = new FLIP({
element: target,
duration: 2000
});
// First position & opacity.
flip.first();
// Apply the 'end' class and snapshot the last position & opacity.
flip.last('end');
// Move and fade the element back to the original position.
flip.invert();
// Play it forwards.
flip.play();
If you've already got GSAP in place, you may wish for it to handle playback. In which case, you can declare that in the config object:
let flip = new FLIP({
element: target,
duration: 2000,
play: 'GSAP'
});
You can either specify your own function, or, if you're using GSAP, you can use its easing functions:
// Declare an easing function directly.
let flip = new FLIP({
element: target,
easing: function (t) {
return t * t;
}
});
// ... or declare an easing function from GSAP.
let flip = new FLIP({
element: target,
easing: Bounce.easeOut
});
For more background info take a look at the FLIP intro post.
License: Apache 2.0 - See /LICENSE.
Author: paullewis.
Please note: this is not an official Google product.
FAQs
A FLIP helper
We found that @behance/flip 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.