CSS · Properties — CSS Transforms

translate

The CSS translate property. Initial value: none. Not inherited.

Syntax
translate: none | <length-percentage> [ <length-percentage> <length>? ]?

Example

Try it

Notes

Media: visual. Applies to: transformableElements. Computed value: asSpecifiedRelativeToAbsoluteLengths.

More in this group

backface-visibility perspective-origin rotate scale transform-box transform-style

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course