Polymer 如何在聚合物中建立transformOrigin';s放大动画?

Polymer 如何在聚合物中建立transformOrigin';s放大动画?,polymer,Polymer,我使用的是Polymer 1.6.0,我有以下代码和一个切换纸张对话框的FAB: <template> <paper-fab icon="icons:more-horiz" on-tap="toggleDialog"></paper-fab> <paper-dialog id="myDialog" entry-animation="scale-up-animation"

我使用的是Polymer 1.6.0,我有以下代码和一个切换纸张对话框的FAB:

<template>
    <paper-fab icon="icons:more-horiz" on-tap="toggleDialog"></paper-fab>

    <paper-dialog id="myDialog"
                  entry-animation="scale-up-animation"
                  exit-animation="scale-down-animation">
        ...
    </paper-dialog>
</template>

<script>
    Polymer({
        is: 'my-component',
        toggleDialog: function (e) {
              var x = e.detail.x;
              var y = e.detail.y;
              // Set the entry animation initial coordinates to (x, y)
              // Set the exit animation final coordinates to (x, y)
              this.$.myDialog.toggle();
        }
    });
</script>

...
聚合物({
是:'我的组件',
切换对话框:函数(e){
var x=e.detail.x;
var y=e.detail.y;
//将条目动画初始坐标设置为(x,y)
//将退出动画最终坐标设置为(x,y)
此.$.myDialog.toggle();
}
});
对话框从屏幕中心向上缩放,然后向下缩放到同一点

我希望对话框从用户单击晶圆厂的位置向上扩展,同时向下扩展到该位置

我的问题是:如果可能,如何在上面的代码中以这种方式配置进入和退出动画