Fixed a bug affecting the animation of the opacity property