0.0.17 • Published 4 years ago

@ryova/parallax_component v0.0.17

Weekly downloads
1
License
MIT
Repository
-
Last release
4 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

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.1

4 years ago