Fix animation on modal and carousel