Replacing translate to translate3d for better performance.