add transition effect for transparency effect