You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(anim): Introduce PresetAnim and enhance animation capabilities
This commit introduces a new `PresetAnim` object providing predefined animation configurations like fade in/out, slide in/out from various directions, pop in, and bounce in.
It also refactors and enhances the `View.anim` extension function:
- Default `gravity` in `AnimConfig` is now `Gravity.NO_GRAVITY`.
- Animation logic is improved for smoother transitions, correctly handling `isIn` states for translation, alpha, and rotation.
- A DSL-style `anim` extension is added: `view.anim { fadeIn() }`.
- `animSafely` extension is introduced to ensure animations run after view dimensions are available.
The sample app (`MainActivity.kt`, `FeatureAdapter.kt`, `FeatureEntry.kt`) has been updated to demonstrate hierarchical feature navigation using the new animation presets for item transitions. `FeatureEntry` now supports child entries, and `FeatureAdapter` manages a stack for navigation.