feat(transitions): md navbar transition

This commit is contained in:
Adam Bradley
2015-09-06 23:13:05 -05:00
parent 3c4d36b835
commit 71d60159ea
2 changed files with 21 additions and 28 deletions

View File

@@ -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);