ngxture
v0.0.11
Published
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.).
Downloads
55
Readme
🎬 Angular Animations & Gestures Directives Library
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.
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)">
Pan me
</div>
<!-- Swipe -->
<div ngxsture-swipe (swipeLeft)="onSwipeLeft($event)">
Swipe me left
</div>🤝 Contributing
Contributions are welcome! Please open an issue GitHub Issue or PR on GitHub PR
