mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(transitions): md navbar transition
This commit is contained in:
@@ -155,7 +155,7 @@ export class Animation {
|
||||
}
|
||||
|
||||
fadeIn() {
|
||||
return this.fromTo('opacity', 0, 1);
|
||||
return this.fromTo('opacity', 0.01, 1);
|
||||
}
|
||||
|
||||
fadeOut() {
|
||||
@@ -449,6 +449,11 @@ class Animate {
|
||||
// not using the direct API methods because they're still in flux
|
||||
// however, element.animate() seems locked in and uses the latest
|
||||
// and correct API methods under the hood, so really doesn't matter
|
||||
|
||||
if (!fromEffect) {
|
||||
return console.error(ele.tagName, 'animation fromEffect required, toEffect:', toEffect);
|
||||
}
|
||||
|
||||
this.toEffect = parseEffect(toEffect);
|
||||
|
||||
this.shouldAnimate = (duration > RENDER_DELAY);
|
||||
|
||||
Reference in New Issue
Block a user