1.0.1 • Published 5 years ago

@netsells/vue-parallax v1.0.1

Weekly downloads
1
License
-
Repository
github
Last release
5 years ago

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

PropRequiredTypeDescription
backgroundRequiredStringShould be a URL of an image
speedRequiredNumberShould be a number between 0 and 1
outerClassesStringAdditional classes to add to the outer div
innerClassesStringAdditional classes to add to the div with the background-image