1.0.3 • Published 5 years ago

@sil/scroll-parallax v1.0.3

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

Scroll Parallax

A simple Vue Directive to parallax an element.

Install

Install the package npm install @sil/scroll-parallax

Import the package

import ScrollParallax from '~/@sil/scroll-parallax

Define the component:

	Vue.directive(ScrollParallax);

Use the component with default values:

<any-element v-parallax />	

Arguments

ArgumentDefaultDescription
debugfalseShow debugging information about this element
output'translate'Options: 'translate' / 'property ', Set the value directly on a translate or on a css custom property
originalOffset0Change the initial offset of the element
minWidth0Trigger the parallax from this value.
amount1.5Amount of parallax
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

6 years ago