Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
nothing in demo yet ;)
This is a javascript snippet library for animating and interacting with the DOM. Most of these are modules I use in my projects everyday and simply wanted to share them for anyone else that's interested in contributing fun reusable code.
Install BradPitt, and add it to your package.json
dependencies.
$ npm i bradpitt --save
import {lazy} from 'bradpitt'
let oscar = document.querySelector('.award')
let oscars = document.querySelectorAll('.awards')
lazy(oscar, 'won', 600)
lazy(oscars, 'nominated', 900)
lazy(oscar, 'nominated', 900, {
change: 'add'
})
lazy(oscar, 'nominated', 1200, {
change: 'remove'
})
Optional Reading that explains the technique.
import {swimming} from 'bradpitt'
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 parallax = swimming('.bradpitt');
parallax.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
Set of javascript modules that do cool stuff
We found that bradpitt 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.