My 5th book "50 Tips on JavaScript" is on sale. Go get it from https://50tips.dev.
Illustrated guide to 50 of the most interesting JavaScript topics.

Moving elements with translate() is better than absolute positioning (top, left, right, bottom)

If you plan to make an animation by using position: absolute and set top, left, right or bottom please don't. Just use translate. It's just better, as Paul Irish proves.
If you enjoy this post, share it on Twitter, Facebook or LinkedIn. To leave a comment go here.