what is the equivalent for animateTarget for modern toolkit

How to animate a Dialog from a button tap?