1.0.1 • Published 5 years ago
@netsells/vue-parallax v1.0.1
Vue Parallax
A simple vue component to add parallax background images.
Installation
npm install @netsells/vue-parallax
or
yarn add @netsells/vue-parallax
Basic Usage
<v-parallax :background="[IMAGE_URL]" :speed="[PARALLAX_SPEED]">
[INNER_HTML_CONTENT]
</v-parallax>
Props
Prop | Required | Type | Description |
---|---|---|---|
background | Required | String | Should be a URL of an image |
speed | Required | Number | Should be a number between 0 and 1 |
outerClasses | String | Additional classes to add to the outer div | |
innerClasses | String | Additional classes to add to the div with the background-image |