HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

translate

Description

The translate property for CSS accepts 1-3 values, each specifying a translation against one axis, in the order X, Y, and Z.

Syntax

CSS

translate: value;

JS

object.style.translate = "value";

Values

<'translate'> =
    none |
    <length-percentage>
    [ <length-percentage> <length>? ]?
none

No translation.

<length-percentage> =
    <length> |
    <percentage>
<length>

Specifies the length using a number followed by a unit of measurement.

<percentage>

Specifies the percentage using a number followed by a percent sign (%).

<length>

Specifies the length using a number followed by a unit of measurement.

Initial

none

Examples

1 · length

2 · none

3 · percentage

4 · JS