0.0.3 • Published 6 years ago
@claytoncc/parallax v0.0.3
PARALLAX COMPONENT
Installation instructions
Install @claytoncc/parallax from npm:
npm install --save @claytoncc/parallaxAdd needed package to NgModule imports:
import { ParallaxModule } from '@claytoncc/parallax';
@NgModule({
...
imports: [ParallaxModule]
...
})Usage:
<app-parallax-container [images]="images">
<app-parallax-item>
...
custom html
...
</app-parallax-item>
<app-parallax-item>
...
custom html
...
</app-parallax-item>
</app-parallax-container>Component:
@Component({...})
export class AppComponent {
constructor() {};
public images: string[] = ['./assets/image.png'];
}