Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
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
The npm package bradpitt receives a total of 0 weekly downloads. As such, bradpitt popularity was classified as not popular.
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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.