/* fade in */ transition: opacity 0.2s ease-in-out; }
#dialog[hidden] { /* [hidden] usually sets display:none, which we need to revert in order to allow animations */ display: block; /* actually hide the element, making its contents unaccessible */ visibility: hidden; /* make sure the element is out of viewport */ transform: translate3d(0px, -1px, 0px) scale(0); /* delay transform until animations are done */ transition: visibility 0s linear 0.2s, transform 0s linear 0.2s; }
0评论