Home
CSS
CSS 2D Transforms
Tryit: The translate() method
Run ❯
Get your
own
website
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
The translate() Method
The translate() method moves an element from its current position:
This div element is moved 50 pixels to the right, and 100 pixels down from its current position.