Skip to content

Lioruby/vue3-parallax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ This component is not kept up to date ⚠️

Last I heard, it still works, but any new pull requests would be welcome. Thank you in advance.

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>
Props Type Value Default
speed Number below 0.6 0.15
direction String x/y y
up Boolean true
down Boolean false
left Boolean false
right Boolean true

About

Vue3 yarn package for simple parallax

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published