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

translate3d

Description

The translate3d function for CSS specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively.

Syntax

CSS

translate3d()

Values

<translate3d()> =
    translate3d(
        <length-percentage> ,
        <length-percentage> ,
        <length>
    )
<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 (%).

Examples

1 · length

2 · percentage

3 · JS

matrix

matrix3d

perspective

rotate

rotate3d

rotateX

rotateY

rotateZ

scale

scale3d

scaleX

scaleY

scaleZ

skew

skewX

skewY

translate

translateX

translateY

translateZ

abs

acos

asin

atan

atan2

attr

calc

clamp

color

conic-gradient

cos

counter

counters

hsl

hsla

hwb

lab

lch

linear-gradient

matrix

matrix3d

max

min

mod

oklab

oklch

param

perspective

radial-gradient

rem

repeating-conic-gradient

repeating-linear-gradient

repeating-radial-gradient

rgb

rgba

rotate

rotate3d

rotateX

rotateY

rotateZ

round

scale

scale3d

scaleX

scaleY

scaleZ

sin

skew

skewX

skewY

src

tan

translate

translateX

translateY

translateZ

url

var

World Wide Web Consortium (W3C)

HomeMenu