![]() |
VOOZH | about |
The translateX() function is an inbuilt function which is used to reposition the element along the horizontal axis.
Syntax:
translateX( t )
Parameters: This function accepts single parameter t which holds the length of translation corresponding to x-axis. Below examples illustrate the translateX() function in CSS:
Example 1:
Output:
Example 2:
Output:
Supported Browsers: The browsers supported by translateX() function are listed below: