Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ahmnouira/ionic-react-header-parallax

Easy to use hook to handle the parallax effect for IonHeader component in React Ionic.
https://github.com/ahmnouira/ionic-react-header-parallax

ionic ionic-4 ionic5 parallax parallax-effect react-ionic

Last synced: about 1 month ago
JSON representation

Easy to use hook to handle the parallax effect for IonHeader component in React Ionic.

Awesome Lists containing this project

README

        


Easy to use hook to handle the parallax effect for IonHeader component in React Ionic.













## Overview



## [Youtube video URL](https://www.youtube.com/watch?v=YZ5nlRjstA4)
## Installation with npm

```sh
npm install ionic-react-header-parallax --save
```

## Installation with yarn

```sh
yarn add ionic-react-header-parallax
```

## Example

```tsx
import * as React from 'react'
import { IonBackButton, IonButtons, IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react'
import { useIonHeaderParallax } from 'ionic-react-header-parallax'

const Home: React.FC = () => {

const { ref } = useIonHeaderParallax({
image: 'https://picsum.photos/1080',
showBarButtons: true,
})

return (






Post Title


{...}


)
}

export default Home

```

## API

- [useIonHeaderParallax](https://github.com/ahmnouira/ionic-react-header-parallax#useIonHeaderParallax)

### `useIonHeaderParallax`