Angular Wrapper for Vanilla Tilt a smooth 3D tilt.
Quick links
Change logs | Project Repository
Get library via npm
npm install vanilla-tilt @types/vanilla-tilt @ssv/ngx.tiltimport { TiltModule } from "@ssv/ngx.tilt";
@NgModule({
imports: [
TiltModule
]
}
export class AppModule {
}<!-- simple -->
<div ssvTilt>
im tilt
</div>const tiltOptions: TiltOptions = {
glare: true,
["max-glare"]: 0.5
}<!-- with options -->
<div ssvTilt [tiltOptions]="tiltOptions">
show only when large
</div>- Run
git clone https://github.com/ssv/ngx.tilt
The following process need to be executed in order to get started.
npm installnpm run buildnpm testBuilds on changes.
npm startSpawns test runner and keep watching for changes.
npm run tddnpm run prepare-release -- --bump major|minor|patch|prerelease (default: patch)Check out the release workflow guide in order to guide you creating a release and publishing it.