๐ฌ Angular Animations & Gestures Directives Library
September 18, 2025 ยท View on GitHub
A lightweight and modular Angular directives library that provides ready-to-use animations (fade, scale, rotate, translate, skew, color, bounce) and gesture directives (tap, double-tap, press, swipe, pan, pinch, rotate, etc.).
Includes services and base directives for building gesture-driven animations.
Also support Angular 8 โ For Angular 8 projects simply import 'hammerjs' in polyfills.ts or main.ts.
Angular 20+ โ fully supported, Vite SSR safe
โจ Features
-
๐ Built with Angular 16 directives
-
๐ Gesture directives included:
ngxsture-tapngxsture-doubletapngxsture-tripletapngxsture-pressngxsture-pressupngxsture-swipengxsture-panngxsture-pinchngxsture-rotate
-
๐ญ Animations included:
ngxFadengxScalengxRotationngxTranslatengxSkewngxColorngxBounce
-
โก Optimized build with ESM output and tree-shaking support
๐ฆ Installation
npm install ngxture
๐ Usage
Animations
<!-- Fade -->
<div ngxFade [config]="{ duration: 500, easing: 'ease-in' }">
I will fade in!
</div>
<!-- Rotate -->
<div ngxRotate [config]="{ degrees: 90, duration: 400 }">
I will rotate!
</div>
<!-- Bounce -->
<button ngxBounce>
Bouncy Button
</button>
Gestures
<!-- Tap -->
<div ngxsture-pan (panStart)="onStart($event)">
Tap me
</div>
<!-- Swipe -->
<div ngxsture-swipe (swipeLeft)="onSwipeLeft($event)">
Swipe me
</div>
๐ค Contributing
Contributions are welcome! Please open an issue GitHub Issue or PR on GitHub PR