@ngu/parallax
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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.

Package Sidebar

Install

npm i @ngu/parallax

Weekly Downloads

4

Version

0.1.1

License

none

Last publish

Collaborators

  • ngu