Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

angular-rellax

wbhob19MIT0.1.3TypeScript support: included

Angular 2 bindings for Rellax.js

Angular, 2, Library, Rellax, Parallax

readme

angular-rellax

Angular 2 bindings for Rellax by Dixon and Moe.

Usage

Import RellaxDirective into your module.

import { RellaxDirective } from 'ng-rellax'

@NgModule({
    declarations: [RellaxDirective]
})

Just add the rellax directive to your element, and use the [speed] and [center] inputs (optional).

Example

<div rellax [speed]="4"></div>

[speed] and [center] are both optional.

Contributing

I didn't get a chance to test this very much, so if you find something, please file an issue or PR at [https://www.github.com/wbhob/ng-rellax].