Added support for appearance transition.