erikringsmuth/app-router

Core-animated-pages inside pages

Open

#69 aperta il 22 gen 2015

Vedi su GitHub
 (6 commenti) (0 reazioni) (0 assegnatari)HTML (83 fork)batch import
bughelp wanted

Metriche repository

Star
 (608 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Hi, I am using app-router with animation between routes. In some of my pages I have core-animated-pages element that animates the content inside. The problem is that when the inner transition ends, app-router catches this event and then removes whole page.

Line 80 in app-router.js

// when a transition finishes, remove the previous route's content. there is a temporary overlap where both
// the new and old route's content is in the DOM to animate the transition.
router.coreAnimatedPages.addEventListener('core-animated-pages-transition-end', function() {
      transitionAnimationEnd(router.previousRoute);
});

Is it possible to use core-animated pages inside page routes with core-animated-pages enabled on router?

Guida contributor