vue-component decorator for parallax effect
npm install @ryova/parallax_componentsh
npm i @ryova/parallax_component -s
`
---
Local registration:
`js
import Parallax from '@ryova/parallax_component'
`
---
Dynamic import:
`js
components: {
Parallax: () => import('@ryova/parallax_component')
}
`
---
Usage & Props
`html
//or
`
---
Props values
| Prop | Default value | Type |
| - | - | - |
| Options| null | Object |
| Multiplier| 0.25 | Number |
| Direction | down | String |
| OpacityFade | false | Boolean |
| OpacityFadeOffset | 0 | Number |
---
Options Prop
Options object is just a simple props object. For comfortable use.
`js
const S = this.Options?.Multiplier ?? this.Multiplier
``