1run 'npm install --save angular-tilt'
2
3~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4
5Add 'AngularTiltModule' to your app.module.ts imports
6
7@NgModule({
8 imports: [..., AngularTiltModule],
9 declarations: [...],
10 bootstrap: [...]
11})
12export class AppModule {}
13
14~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
16And add the directive to you components
17
18<div class="container" aTilt></div>
19<div class="container" aTilt [tiltSettings]="tiltSettings"></div>