Use translate3d

See #1383.