
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
ang2-parallax
Advanced tools
An easy way to implement parallax scrolling for Angular2 components. (There's also an Angular 1.x directive for those that need it.)
Include the module in your scripts.
import { Component } from '@angular/core';
import { ng2Parallax } from '<pathTo>/ng2-parallax/parallax.directive';
@Component({
selector: 'my-component',
directives: [ng2Parallax],
template:`
<div style='width: 200; height: 200px'>
<div parallax speed="5" src="path/to/image.jpg"></div>
</div>
`
})
export class componentName { }
1.0.0
npm install ng-parallax --save-dev
bower install ng-simple-parallax --save
speed = 0 to xx (the higher the number, the slower the effect). This part requires some tinkering since different image sizes will respond differently.
src = path to image
MIT - go nuts y'all.
FAQs
A parallax module built for Angular 2 components.
We found that ang2-parallax 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.