* Closes the toast. * @return {!Promise}
()
| 12018 | * @return {!Promise} |
| 12019 | */ |
| 12020 | close() { |
| 12021 | return this.animate_(() => { |
| 12022 | // Remove the toast from the DOM after animation is complete. |
| 12023 | this.doc_.getWin().setTimeout(() => { |
| 12024 | this.doc_.getBody().removeChild(this.iframe_); |
| 12025 | return Promise.resolve(); |
| 12026 | }, 500); |
| 12027 | |
| 12028 | return transition$1( |
| 12029 | this.iframe_, |
| 12030 | { |
| 12031 | 'transform': 'translateY(100%)', |
| 12032 | 'opacity': 1, |
| 12033 | 'visibility': 'visible', |
| 12034 | }, |
| 12035 | 400, |
| 12036 | 'ease-out' |
| 12037 | ); |
| 12038 | }); |
| 12039 | } |
| 12040 | } |
| 12041 | |
| 12042 | /** |
no test coverage detected