[Code]我有一个指令,我想让DOM中的任意元素具有动画效果。我觉得我做错了什么- // this returns the right element
this.panelParentElement = this.element.closest('.cdk-overlay-pane') as HTMLElement;
const animation = this.panelParentElement.animate([{ width: '100vw', height: '100vh' }]);
animation.play(); 我在一个类