Skip to content

Commit

Permalink
fix(dialog): partial keyframes animation error (#5020)
Browse files Browse the repository at this point in the history
Fixes an error being thrown by the dialog animations. It looks like it was triggered as a result of the changes from 28d2ddd.

Fixes #5019.
  • Loading branch information
crisbeto authored and andrewseguin committed Jun 8, 2017
1 parent 63db51f commit 9c45865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/dialog/dialog-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ export function throwMdDialogContentAlreadyAttachedError() {
trigger('slideDialog', [
// Note: The `enter` animation doesn't transition to something like `translate3d(0, 0, 0)
// scale(1)`, because for some reason specifying the transform explicitly, causes IE both
// to blur the dialog content and decimate the animation performance. Leaving it blank
// to blur the dialog content and decimate the animation performance. Leaving it as `none`
// solves both issues.
state('enter', style({ opacity: 1 })),
state('enter', style({ transform: 'none', opacity: 1 })),
state('void', style({ transform: 'translate3d(0, 25%, 0) scale(0.9)', opacity: 0 })),
state('exit', style({ transform: 'translate3d(0, 25%, 0)', opacity: 0 })),
transition('* => *', animate('400ms cubic-bezier(0.25, 0.8, 0.25, 1)')),
Expand Down

0 comments on commit 9c45865

Please sign in to comment.