interface to bind a promise to a css animation