Improved transition API for fadeIn/Out and adapted called in DomLayer