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
I have searched for existing issues that already include this feature request, without success.
Describe the Feature Request
Export the already created animations for modals so that they can be publicly consumed by users of this library
Describe the Use Case
I understand that I can build my own animations which is great but sometimes I just want to tweak an existing animation slightly. Today the only way to do that is to bring the source code in to my project.
Describe Preferred Solution
Ideally, I would like to simply import the already created animations and then call the methods on the Animation object to enhance it for my purposes
Describe Alternatives
Perhaps an option when presenting the modal could pass to you the animation that would be used and allow you to act upon it before doing the final presentation.
Related Code
Here is an example of how I might expect this to work:
import{sheetEnterAnimation}from'@ionic/core';exportconstmyEnterAnimation=(baseEl: HTMLElement,opts: ModalAnimationOptions): Animation=>{constanimation=sheetEnterAnimation(baseEl,opts);// here I'm moving the modal so it renders somewhere else but you can imagine any other tweaks// that are possible by hooking into the Animation objectanimation.beforeAddWrite(()=>{constmodal=document.querySelector('ion-modal');constappTabs=document.querySelector('app-tabs');appTabs.appendChild(modal);});returnanimation;};
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Combining with #25243, when providing an easier way of extending/overriding and accessing the built-in animations, we should consider exporting the base animations from the library, so that developers can use them directly.
Prerequisites
Describe the Feature Request
Export the already created animations for modals so that they can be publicly consumed by users of this library
Describe the Use Case
I understand that I can build my own animations which is great but sometimes I just want to tweak an existing animation slightly. Today the only way to do that is to bring the source code in to my project.
Describe Preferred Solution
Ideally, I would like to simply import the already created animations and then call the methods on the Animation object to enhance it for my purposes
Describe Alternatives
Perhaps an option when presenting the modal could pass to you the animation that would be used and allow you to act upon it before doing the final presentation.
Related Code
Here is an example of how I might expect this to work:
Additional Information
No response
The text was updated successfully, but these errors were encountered: