0.1.4 • Published 3 years ago

vue3-parallax v0.1.4

Weekly downloads
21
License
-
Repository
github
Last release
3 years ago

vue3-parallax

A simple Vue.js 3 parallax component.

You can see the demo here : https://lioruby.github.io/vue3-parallax/

Get Started

With yarn

yarn add vue3-parallax

With npm

npm i vue3-parallax

To use it in your Vue app

// main.js

import { createApp } from 'vue'
import App from './App.vue'
import ScrollParallax from 'vue3-parallax/src/components/ScrollParallax.vue';


const app = createApp(App);
app.component('scroll-parallax', ScrollParallax);

// ...

To use it just as component:

import ScrollParallax from 'vue3-parallax/src/components/ScrollParallax.vue';

export default {
  components: {
    ScrollParallax
  },

// ...

Usage

<scroll-parallax>
  <YourComponent/>
</scroll-parallax>
PropsTypeValueDefault
speedNumberbelow 0.60.15
directionStringx/yy
upBooleantrue
downBooleanfalse
leftBooleanfalse
rightBooleantrue
0.1.4

3 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago