polymer-animation: add custom animation function