Swicthed keyframes from margin to transform