0.1.3 • Published 7 years ago

angular-rellax v0.1.3

Weekly downloads
55
License
MIT
Repository
github
Last release
7 years ago

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.