mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(md): increased delay before md transitions
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user