# vue-sf-parallax

> An easy to use Mouse Parallax Component - Made with Vue.js

Latest version **1.0.0** (published 2019-06-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-sf-parallax
pnpm add vue-sf-parallax
yarn add vue-sf-parallax
bun add vue-sf-parallax
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-06-05 |
| First published | 2019-06-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 29 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 84 |
| Author | Amine Bouyarmane |
| Maintainers | s3rg1s |
| Keywords | vue, vuejs, plugin, component |

## Links

- npm: https://www.npmjs.com/package/vue-sf-parallax
- Repository: https://github.com/aminerman/vue-mouse-parallax
- Homepage: https://github.com/aminerman/vue-mouse-parallax#readme
- Issues: https://github.com/aminerman/vue-mouse-parallax/issues
- npm.io page: https://npm.io/package/vue-sf-parallax

## Recent versions

- 1.0.0 (latest) — 2019-06-05

## README

# vue-sf-parallax (vue-mouse-parallax s3rg1s fork)

[![npm](https://img.shields.io/npm/v/vue-mouse-parallax.svg) ![npm](https://img.shields.io/npm/dm/vue-mouse-parallax.svg)](https://www.npmjs.com/package/vue-mouse-parallax)
[![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://vuejs.org/)

An easy to use Mouse Parallax Component - Made with Vue.js

## Demo

[vuejs mouse parallax](https://aminerman.com/playground/vuejs-mouse-parallax/)


# Installation

```
npm install --save vue-sf-parallax
```

## Default import

Install all the components:

```javascript
import Vue from 'vue'
import VueMouseParallax from 'vue-sf-parallax'

Vue.use(VueMouseParallax)
```

Use specific components:

```javascript
import Vue from 'vue'
import { ParallaxContainer, ParallaxElement } from 'vue-sf-parallax'

Vue.component('parallax-container', ParallaxContainer)
Vue.component('parallax-element', ParallaxElement)
```

**⚠️ A css file is included when importing the package. You may have to setup your bundler to embed the css in your page.**

## Browser

```html
<link rel="stylesheet" href="vue-sf-parallax/dist/vue-mouse-parallax.css"/>

<script src="vue.js"></script>
<script src="vue-sf-parallax/dist/vue-mouse-parallax.browser.js"></script>
```


# Usage

In order for the effect to work, the <parallax-element /> should be contained within <parallax-container />

Options can then be passed to <parallax-element /> like so :

```html
// App.vue

<parallax-container>

    <parallax-element :parallaxStrength="-5" :type="'translation'">
        <h2>Put your content here</h2>
     </parallax-element>

</parallax-container>
```

## Props

| Prop   |      Type      |  Default Value | Description
|----------|:-------------:|------|------|
| parallaxStrength |  Number | 10 | Strength of the Parallax Effect |
| type |  String   | 'translation' | 'translation' - 'rotation' - 'depth' |


## License

[MIT](http://opensource.org/licenses/MIT)

---
_Source: https://npm.io/package/vue-sf-parallax · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
