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.tilt
import { 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 install
npm run build
npm test
Builds on changes.
npm start
Spawns test runner and keep watching for changes.
npm run tdd
npm 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.