0.0.17 • Published 6 years ago

@ryova/parallax_component v0.0.17

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

Parallax Component

Simple use vue-component decorator / container for parallax effect.

npm.io

Install & Registration

  npm i @ryova/parallax_component -s

Local registration:

  import Parallax from '@ryova/parallax_component'

Dynamic import:

components: {
  Parallax: () => import('@ryova/parallax_component')
}

Usage & Props

<div class="container">
  <parallax :Options="{ OpacityFade: true, OpacityFadeOffset: 150 }">
    <span class="item"><span>
  </parallax>
  //or
  <parallax :OpacityFade="true" :OpacityFadeOffset="150">
    <span class="item"><span>
  </parallax>
</div>

Props values

PropDefault valueType
OptionsnullObject
Multiplier0.25Number
DirectiondownString
OpacityFadefalseBoolean
OpacityFadeOffset0Number

Options Prop

Options object is just a simple props object. For comfortable use.

  const S = this.Options?.Multiplier ?? this.Multiplier
0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.1

6 years ago