I have been recently looking on transform property which can used with css animations to produce cool animations,3D objects, even transitions to make website cooler
you can go through the code and check how transform property works
https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/translate()
https://developer.mozilla.org/en-US/docs/Web/CSS/transform
https://developer.mozilla.org/en-US/docs/Web/CSS/transform-style
https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/translate3d()