0.1.1 • Published 7 years ago

@ngu/parallax v0.1.1

Weekly downloads
2
License
-
Repository
github
Last release
7 years ago

ngu-parallax

Angular Universal parallax

Demo

Demo available Here

Installation

npm install @ngu/parallax --save

Sample

Include NguParallaxModule in your app module:

import { NguParallaxModule } from '@ngu/parallax';

@NgModule({
  imports: [
    NguParallaxModule
  ],
})
export class AppModule { }

Then use in your component:

import { Component } from '@angular/core';

@Component({
  selector: 'sample',
  template: `
    <ngu-parallax [image]="imageURL" style="height: 250px">
      // your elements goes here
    </ngu-parallax>
  `,
})
export class SampleComponent {}

Treat ngu-parallax as a div element

License

MIT license.