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
-
🚀 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
npm install ngxture<!-- 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><!-- 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