Added opacity for smoother transition in animation