diff --git a/libs/components/src/dialog/animations.ts b/libs/components/src/dialog/animations.ts new file mode 100644 index 00000000000..56f0c971277 --- /dev/null +++ b/libs/components/src/dialog/animations.ts @@ -0,0 +1,11 @@ +import { style, animate, trigger, transition, group } from "@angular/animations"; + +export const fadeIn = trigger("fadeIn", [ + transition(":enter", [ + style({ opacity: 0, transform: "translateY(-50px)" }), + group([ + animate("0.15s linear", style({ opacity: 1 })), + animate("0.3s ease-out", style({ transform: "none" })), + ]), + ]), +]); diff --git a/libs/components/src/dialog/dialog/dialog.component.html b/libs/components/src/dialog/dialog/dialog.component.html index 271d923079e..cce5ad3e267 100644 --- a/libs/components/src/dialog/dialog/dialog.component.html +++ b/libs/components/src/dialog/dialog/dialog.component.html @@ -1,6 +1,7 @@