shannonhochkins/ha-component-kit

Modal - Animation Control

Closed this issue · 1 comments

Current Problem

Modal's currently give a user no control over animations of behaviour, need to explore options to potentially expose the frame motion API with related reference elements so a user can define their own animations.

The current expanding animation started off something unique, but it's causing more problems than it's worth.

Potential Solution
I'd like to expose functionality to easily swap between a few preset animations and potentially custom animations. There also needs to be a way to override a global default, for example if the default is "fadeIn", and a user what's to change it to "scaleIn", this should be changed at the root level through the ThemeProvider and passed through to child components that share the main animation.

Release as a part of 3.2.0