+1 vote
in CSS by
What are the advantages of using translate() instead of absolute position?

1 Answer

0 votes
by

Translate() does not cause the browser to trigger repaint and layout and instead only acts on the compositor. The absolute position triggers the repaint or DOM reflow. So, translate() gives the better performance.

Related questions

+1 vote
asked Jul 8, 2021 in CSS by rajeshsharma
0 votes
asked Apr 15, 2022 in ReactJS by Robindeniel
...