![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
rfx-parallax
Advanced tools
Parallax made easy
translate3d
Install the npm package:
npm install rfx-parallax
import { RfxParallaxModule } from 'rfx-parallax';
@NgModule({
imports: [
RfxParallaxModule
]
})
In your app.component.ts initialize parallax listeners inside ngOnInit
import { RfxParallaxService } from 'rfx-parallax';
constructor(private rfxParallaxService: RfxParallaxService) {}
public ngOnInit(): void {
this.rfxParallaxService.initListeners();
}
and if you have a custom scrollbar component you can pass the nativeElement
to the initListeners() function like this:
WARNING: use ngAfterViewInit
instead of ngOnInit
otherwise your nativeElement
may not be defined
<custom-scrollbar #scrollbar>
<!-- Your page here -->
</custom-scrollbar>
@ViewChild('scrollbar') public scrollbarElement: ElementRef;
public ngAfterViewInit(): void {
this.rfxParallaxService.initListeners(this.scrollbarElement.nativeElement);
}
just apply libRfxParallax
to your container and pass the image url
<div libRfxParallax imageUrl="<image-path>"></div>
parallaxPercentage: number
(default value: 40)
percentage of image scrolling, e.g. 40% will scroll 40% of the image
positionPercentage: number
(default value: 50)
image zoom position in percentage, e.g. 50% will zoom to the center
imageZIndex: number
(default value: -1)
z-index property of the image
visibleOverflow: boolean
(default value: false)
container overflow
isDisabled: boolean
(default value: false)
is parallax disabled
forceFullWidth: boolean
(default value: false)
force image to be the same width as container.
usefull when you have visibleOverflow
set to true
Missing configuration parameter?
Request it here: https://github.com/RedFoxxo/RFXLibrary/issues
https://demo.redfoxxo.dev/rfx-parallax
This project is licensed under the MIT License
FAQs
RfxParallax - parallax made easy
We found that rfx-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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.