I am looking for a way to add a custom modal transition. I'd like to have certain modals (not all modals) to be the full width of the viewport and slide up from the bottom, taking only 50% of the vertical viewport.
I believe to achieve this, I need to create a new transition and register it by injecting the Config and then doing
config.setTransition('custom-transition', CustomTransition) however
setTransition is private. Why is this?
How do I go about animating a modal to slide up? I've tried using .pageRef() and adding a custom class to the modal-wrapper to set the modal to full width, etc... I did get partially what I wanted, but the transitions weren't desirable. It was animating from the center to the bottom half the screen.
Anyone have any ideas?