feat(md): increased delay before md transitions

This commit is contained in:
Adam Bradley
2015-09-29 21:44:43 -05:00
parent f12ad4e20d
commit 7a541b80d2
3 changed files with 3 additions and 2 deletions

View File

@@ -243,7 +243,7 @@ export class Animation {
});
}
if (self._duration > this._opts.renderDelay) {
if (self._duration > 32) {
// begin each animation when everything is rendered in their starting point
// give the browser some time to render everything in place before starting
setTimeout(kickoff, this._opts.renderDelay);

View File

@@ -9,6 +9,7 @@ const CENTER = '0px'
class MaterialTransition extends Transition {
constructor(nav, opts) {
opts.renderDelay = 160;
super(nav, opts);
// entering item moves in bottom to center

View File

@@ -11,7 +11,7 @@ let TransitionRegistry = {};
export class Transition extends Animation {
constructor(nav, opts) {
super();
super(null, opts);
// get the entering and leaving items
let enteringView = this.entering = nav.getStagedEnteringView();