![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
ionic-header-parallax
Advanced tools
This directive enables parallax effect on `ion-header` elements to display a cover photo while on top of the page and transition it to the normal navbar when content is scrolled down.
This directive enables parallax effect on ion-header
elements to display a cover photo while on top of the page and transition it to the normal navbar when content is scrolled down.
Stack | Tag |
---|---|
6.x.x | |
5.x.x | |
4.x.x | |
3.x.x | |
2.x.x |
Checkout the Live Demo here
iOS | Android |
---|---|
![]() | ![]() |
npm i ionic-header-parallax
.appmodule.ts
):import { IonicHeaderParallaxModule } from 'ionic-header-parallax';
@NgModule({
imports: [
IonicHeaderParallaxModule,
...
Just add the attribute parallax
to any <ion-header>
element:
<ion-header parallax imageUrl="https://picsum.photos/350" height="350" bgPosition="top">
<ion-toolbar color="primary">
<ion-title> Parallax Header </ion-title>
</ion-toolbar>
</ion-header>
<ion-content> Some content here </ion-content>
Parameter | Type | Description |
---|---|---|
imageUrl | string | The background image to show while expanded. |
height | number | string | The height for the header when expanded. If the value is a number, it will be set in px . If the value is a string it will be passed as is (eg: "20rem" ) |
color | string | The color (web hex formatted) to show while the header is expanded when no imageUrl is set. When scrolled, it will fade to the toolbar's color. |
bgPosition | 'top' | 'center' | 'bottom' | The position of the image in the header. This parameter slightly changes the feeling of the animation. Default: 'top' |
I don't plan to be maintaining this package full-time, but as I'm usually developing in Ionic I'll be glad to update it any time I make some upgrades for myself. Code contributions, issues, and PRs are very welcome. Find the instructions in the CONTRIBUTING.md file.
FAQs
This directive enables parallax effect on `ion-header` elements to display a cover photo while on top of the page and transition it to the normal navbar when content is scrolled down.
The npm package ionic-header-parallax receives a total of 27 weekly downloads. As such, ionic-header-parallax popularity was classified as not popular.
We found that ionic-header-parallax demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
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.