Adds method for configuring a CSS transition callback