fix(aio): improve transitions between pages

- Avoid unnecessary animations, style transitions, repositioning on
  initial rendering.
- Better handle transitioning from/to Home page (which is the only page
  with transparent top-menu).
- Better coordinate sidenav and hamburger animations with page
  transitions.
- Improve fade-in/out animations.

Fixes #20996
This commit is contained in:
George Kalpakas
2017-12-19 02:26:12 +02:00
committed by Alex Rickabaugh
parent 2986e25abb
commit 8ceffd8b48
6 changed files with 304 additions and 205 deletions

View File

@ -368,7 +368,7 @@ describe('DocViewerComponent', () => {
});
it('should display nothing if the document has no contents', async () => {
docViewer.currViewContainer.innerHTML = 'Test';
await doRender('Test');
expect(docViewerEl.textContent).toBe('Test');
await doRender('');
@ -647,6 +647,8 @@ describe('DocViewerComponent', () => {
oldCurrViewContainer.innerHTML = 'Current view';
oldNextViewContainer.innerHTML = 'Next view';
docViewerEl.appendChild(oldCurrViewContainer);
expect(docViewerEl.contains(oldCurrViewContainer)).toBe(true);
expect(docViewerEl.contains(oldNextViewContainer)).toBe(false);
});