You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Md-Dialog] add animation support on opening and closing. #2665
@crisbeto and @jelbourn Is this animation feature something that could be done for overlay?It would be great to have slide down animation for Overlay. Currently panel simply appears under OverlayOrigin.
The original feature request was for the ability to use custom animations on the dialog (as in specify which animation/animation type to use). Was this implemented, or was there just the one animation type added? If not, is that something that could be added in?
Adding the ability to override the animations is tricky with the current state of Angular, because they have to be statically-analyzable for AoT to work.
Is there any example on how to use this. The md dialog api/component with animations defined is not exposed (last time I checked). Where would I put my animations to override the defaults? Thx
We would like this improved for use in the Cloud console. A basic improvement would be opening from its center. Currently it appears to animate up from the bottom, which is strange when you click an item at the top of the page.
Activity
crisbeto commentedon Jan 15, 2017
I've wanted to do this one for a while now. Can I take it @jelbourn?
feat(dialog): add enter/exit animations
feat(dialog): add enter/exit animations
feat(dialog): add enter/exit animations
feat(dialog): add enter/exit animations
feat(dialog): add enter/exit animations
feat(dialog): add enter/exit animations (#2825)
sync from upstream (#1)
atshweza commentedon Jun 14, 2017
@crisbeto and @jelbourn Is this animation feature something that could be done for overlay?It would be great to have slide down animation for Overlay. Currently panel simply appears under OverlayOrigin.
bradyshutt commentedon Jun 20, 2017
The original feature request was for the ability to use custom animations on the dialog (as in specify which animation/animation type to use). Was this implemented, or was there just the one animation type added? If not, is that something that could be added in?
crisbeto commentedon Jun 20, 2017
Adding the ability to override the animations is tricky with the current state of Angular, because they have to be statically-analyzable for AoT to work.
honzajde commentedon Sep 7, 2017
Is there any example on how to use this. The md dialog api/component with animations defined is not exposed (last time I checked). Where would I put my animations to override the defaults? Thx
crisbeto commentedon Sep 7, 2017
At the moment, Angular doesn't allow for the animations to be overwritten @honzajde.
bidiu commentedon Oct 2, 2017
Any news to add at this point?
bkandoori commentedon Feb 2, 2018
I am looking for the same feature , any news on this ?
@crisbeto is there a way I can slide the dialog from top ?
keithguerin commentedon May 15, 2018
We would like this improved for use in the Cloud console. A basic improvement would be opening from its center. Currently it appears to animate up from the bottom, which is strange when you click an item at the top of the page.
Joycechocho commentedon Jun 14, 2018
Looking for the same feature +1
tiagowhite commentedon Sep 17, 2018
Add this to css:
`@-webkit-keyframes fade-in-top {
0% {
-webkit-transform: translateY(-50px);
transform: translateY(-50px);
opacity: 0;
}
100% {
-webkit-transform: translateY(0);
transform: translateY(0);
opacity: 1;
}
}
@Keyframes fade-in-top {
0% {
-webkit-transform: translateY(-50px);
transform: translateY(-50px);
opacity: 0;
}
100% {
-webkit-transform: translateY(0);
transform: translateY(0);
opacity: 1;
}
}
::ng-deep .cdk-overlay-pane {
-webkit-animation: fade-in-top 0.3s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
animation: fade-in-top 0.3s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}
::ng-deep .cdk-overlay-container > * {
transition: none;
}`
Not working for leavig animation :(
angular-automatic-lock-bot commentedon Sep 9, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.