angular tilt

JavaScript
run 'npm install --save angular-tilt'

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Add 'AngularTiltModule' to your app.module.ts imports

@NgModule({
  imports: [..., AngularTiltModule],
  declarations: [...],
  bootstrap: [...]
})
export class AppModule {}

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  
And add the directive to you components

<div class="container" aTilt></div>
<div class="container" aTilt [tiltSettings]="tiltSettings"></div>
Source

Also in JavaScript: