fixing a bug that occurred when hidden elements were faded and transformed simultaneously