V24.9.6+
When I drop the :part selector then the complete dialog including the backdrop is animated in/out. Also using :part(content) does not seem to work.
Which browser did you test this with? I think you might be hitting a limitation regarding animating shadow DOM parts. I forget the specific details, but for example, Chrome behaves differently than Safari.
So if you define the animation properties using the ::part() selector, the keyframes need to be in both scopes, light DOM and shadow DOM of the component. And the only way to add custom keyframes into the shadow DOM is by using the themes/[my-theme]/components/[component-name].css files (which is deprecated in V25).
Thanks, adding the keyframes to the shadow dom fixed it
Regarding the V25 deprecation, what is the appropriate replacement or will there come some until removal?
For V25, my idea/plan is to offer a set of predefined animation options you can configure, namely opacity, scale, and translate. Could probably consider different rotation axis as well, but those feel a bit niche.