Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Simple Parallax powered by CSS3 Transitions
Install Paralless, and add it to your package.json
dependencies.
$ npm i paralless --save
Optional Reading that explains the technique.
import { Paralless } from 'parallless'
Current implementation is on the DOM, this may change to being JS focused (in the optional reading above it's JS based), but for now set up the elements you want on the page as follows:
<div class="bradpitt" data-speed="4">
<img src="http://placehold.it/350x150">
</div>
<div class="bradpitt" data-speed="10">
<img src="http://placehold.it/350x150">
</div>
let animate = Paralless('.bradpitt');
animate.init();
optional recommended css:
transition: all 0.25s ease-out;
transition-delay: 0s;
Feel free to grab the source and configure for your own needs, I've used this for vertical/side-to-side/rotating elements on various sites. This is the slim version I may extend it to handle more situations. The css positioning of elements initially has a large impact as well.
MIT License
FAQs
Hyper-minimal parallax implementation for subtle animation.
The npm package paralless receives a total of 30 weekly downloads. As such, paralless popularity was classified as not popular.
We found that paralless demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.